1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// { dg-options "" } struct a { int x; }; struct b { int x; int y; }; struct foo { union { struct a a; struct b b; } u; }; int main(void) { struct foo bar = { u: { b: { x: 0, y: 0, }}}; (void)bar; return 0; }