blob: 03ff21974eb9eb8753638f94cdcc0a796c89b38a [file] [log] [blame]
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92309
// { dg-do run }
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
union U
{
struct
{
size_t a;
size_t b;
union
{
size_t c;
size_t d;
}
}
}
void main()
{
U u;
assert(u.a == 0);
u.d = 1;
assert(u.a == 0);
}