Make ICC more happy by spelling -f combo as -fcombo, so it can properly ignore "combo...
[libfirm] / ir / be / test / fehler110.c
1 struct A {
2         int a, b, c;
3 };
4
5 struct A globa = { 1, 2, 3 };
6
7 struct A funk(void) {
8         struct A res;
9
10         res.a = globa.c + 20;
11         res.b = globa.b + 20;
12         res.c = globa.a + 20;
13
14         return res;
15 }
16
17 struct A funk2(void) {
18         struct A res;
19
20         memcpy(&res, &globa, sizeof(res));
21
22         res.a -= 20;
23         res.b -= 20;
24         res.c -= 20;
25
26         return res;
27 }
28
29 int main(void) {
30         globa = funk();
31         printf("%d %d %d\n", globa.a, globa.b, globa.c);
32         globa = funk2();
33         printf("%d %d %d\n", globa.a, globa.b, globa.c);
34         return 0;
35 }