PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr52979-1.c
blob13ecb7933548a93c03d1a37ebc4bd0b2d68a20f2
1 /* PR middle-end/52979 */
3 /* { dg-require-effective-target int32plus } */
5 extern void abort (void);
6 int c, d, e;
8 void
9 foo (void)
13 struct __attribute__((packed)) S { int g : 31; int h : 6; };
14 struct S a = { 1 };
15 static struct S b = { 1 };
17 void
18 bar (void)
20 a.h = 1;
21 struct S f = { };
22 b = f;
23 e = 0;
24 if (d)
25 c = a.g;
28 void
29 baz (void)
31 bar ();
32 a = b;
35 int
36 main ()
38 baz ();
39 if (a.g)
40 abort ();
41 return 0;