1/* PR middle-end/52979 */ 2 3/* { dg-require-effective-target int32plus } */ 4 5extern void abort (void); 6int c, d, e; 7 8void 9foo (void) 10{ 11} 12 13struct __attribute__((packed)) S { int g : 31; int h : 6; }; 14struct S a = { 1 }; 15static struct S b = { 1 }; 16 17void 18bar (void) 19{ 20 a.h = 1; 21 struct S f = { }; 22 b = f; 23 e = 0; 24 if (d) 25 c = a.g; 26} 27 28void 29baz (void) 30{ 31 bar (); 32 a = b; 33} 34 35int 36main () 37{ 38 baz (); 39 if (a.g) 40 abort (); 41 return 0; 42} 43