OSDN Git Service

Revert delta 190174
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / pr52979-2.c
1 /* PR middle-end/52979 */
2
3 extern void abort (void);
4 int c, d, e;
5
6 void
7 foo (void)
8 {
9 }
10
11 struct __attribute__((packed)) S { int g : 31; int h : 6; };
12 static struct S b = { 1 };
13 struct S a = { 1 };
14
15 void
16 bar (void)
17 {
18   a.h = 1;
19   struct S f = { };
20   b = f;
21   e = 0;
22   if (d)
23     c = a.g;
24 }
25
26 void
27 baz (void)
28 {
29   bar ();
30   a = b;
31 }
32
33 int
34 main ()
35 {
36   baz ();
37   if (a.g)
38     abort ();
39   return 0;
40 }