tests/basic/return-analyze-if-5.sp
author David Anderson <dvander@alliedmods.net>
Sat Dec 22 19:48:43 2012 -0800 (2012-12-22)
changeset 232 2b8512340180
parent 71 tests/prototype/return-analyze-if-5.sp@f7e573226c2b
child 263 ba85a47ee414
permissions -rw-r--r--
Re-introduce definite return analysis.
     1 native PrintNum(num);
     2 
     3 f(x)
     4 {
     5     if (x == 5)
     6         return 5;
     7     else if (x == 7)
     8         return 9;
     9     else
    10         return 6;
    11 }
    12 
    13 public main()
    14 {
    15     PrintNum(f(5));
    16     PrintNum(f(7));
    17     PrintNum(f(2));
    18 }
    19 
    20