blob: 01ebc40d336096963c805faf5e75230b27e77f2c [file] [log] [blame]
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92309
// { dg-do run { target hw } }
// { 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);
}