PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20131127-1.c
blob8ec49657741cc710a550211f456f9620649a9592
1 /* PR middle-end/59138 */
2 /* Testcase by John Regehr <regehr@cs.utah.edu> */
4 extern void abort (void);
6 #pragma pack(1)
8 struct S0 {
9 int f0;
10 int f1;
11 int f2;
12 short f3;
15 short a = 1;
17 struct S0 b = { 1 }, c, d, e;
19 struct S0 fn1() { return c; }
21 void fn2 (void)
23 b = fn1 ();
24 a = 0;
25 d = e;
28 int main (void)
30 fn2 ();
31 if (a != 0)
32 abort ();
33 return 0;