PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / nestfunc-7.c
blob5b3d34b8dce90204a82950ff992649e23ae158a1
1 struct A
3 int one;
4 int two;
5 int three;
6 int four;
7 int five;
8 int six;
9 };
11 static int test (void)
13 int base;
15 struct A Foo (void)
17 struct A a;
19 a.one = base + 1;
20 a.two = base + 2;
21 a.three = base + 3;
22 a.four = base + 4;
23 a.five = base + 5;
24 a.six = base + 6;
26 return a;
29 base = 10;
30 struct A a = Foo ();
32 return (a.one == 11
33 && a.two == 12
34 && a.three == 13
35 && a.four == 14
36 && a.five == 15
37 && a.six == 16);
40 int main (void)
42 return !test ();