fix bad proj optimisation, fix loads missing the result proj
[libfirm] / ir / be / test / trivial_two_times.c
1 /*
2  * Proj's of the arguments
3  * Simple DF node.
4  */
5 int add(int a, int b) {
6   return a + b;
7 }
8
9 /*
10  * A function call
11  */
12 int two_times(int a) {
13   return add(a, a);
14 }
15
16 int main(int argc, char *argv[])
17 {
18   printf("%d\n", two_times(3));
19   return 0;
20 }