1 /* PR middle-end/52979 */ 2 3 extern void abort (void); 4 int c, d, e; 5 6 void foo(void)7foo (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 bar(void)16bar (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 baz(void)27baz (void) 28 { 29 bar (); 30 a = b; 31 } 32 33 int main()34main () 35 { 36 baz (); 37 if (a.g) 38 abort (); 39 return 0; 40 } 41