example for the new commutative combo
[libfirm] / ir / be / test / combo_comm.c
1 /*$ -fcombo -fno-inline $*/
2 int test(int a, int b) {
3         int c, d;
4
5         c = a + b;
6
7         if (0)
8                 d = 0;
9         else
10                 d = b;
11
12         d = d + a;
13
14         return c + d;
15 }
16
17 int main(int argc, char *argv[]) {
18         return test(2,3) != 10;
19 }