blob: 13ecb7933548a93c03d1a37ebc4bd0b2d68a20f2 [file] [log] [blame]
/* PR middle-end/52979 */
/* { dg-require-effective-target int32plus } */
extern void abort (void);
int c, d, e;
void
foo (void)
{
}
struct __attribute__((packed)) S { int g : 31; int h : 6; };
struct S a = { 1 };
static struct S b = { 1 };
void
bar (void)
{
a.h = 1;
struct S f = { };
b = f;
e = 0;
if (d)
c = a.g;
}
void
baz (void)
{
bar ();
a = b;
}
int
main ()
{
baz ();
if (a.g)
abort ();
return 0;
}