blob: c407a627718ea31e8f86b77ef6fc21886082cebe [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O1" } */
struct empty {};
struct s { int i; };
struct z
{
int j;
struct empty e;
struct s s;
int k;
};
void bar (struct z);
void baz (int);
void foo (void)
{
struct z z, z2;
z.k = 8;
z2.s.i = 1;
z = z2;
bar (z);
z.e = (struct empty) {};
baz (z.k);
}