demonstartes a bug in the tarval module
[libfirm] / ir / be / test / structcall.c
1 struct A {
2   int a;
3   int b;
4 };
5
6 static int test(struct A arg) {
7   return arg.a + arg.b;
8 }
9
10 int main(int argc, char *argv[]) {
11   struct A a;
12
13   a.a = 3;
14   a.b = 4;
15
16   printf("Sum = %d\n", test(a));
17   return 0;
18 }