PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / desig1.C
blobc3ff4c1425815fef8b827d39516de62b811ae80e
1 // { dg-options "" }
3 struct a {
4         int x;
5 };
7 struct b {
8         int x;
9         int y;
12 struct foo {
13         union {
14                 struct a a;
15                 struct b b;
16         } u;
19 int main(void)
21         struct foo bar = { u: { b: { x: 0, y: 0, }}};
22         (void)bar;
23         return 0;