switch is still broken, copying over cparser testcase since noone runs the cparser...
[libfirm] / ir / be / test / fehler078.c
1 /*$ -fno-inline $*/
2 #include <stdio.h>
3
4 int k;
5
6 int f(int a)
7 {
8         if(k < 20) {
9                 rand();
10                 return a < 5 ? 10 : 20;
11         } else {
12                 return a < 5 ? 20 : 0;
13         }
14 }
15
16 int main(void)
17 {
18         k = 21;
19         printf("Res: %d should be 0\n", f(20));
20         return 0;
21 }