c++: anon union designated init [PR105925]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / desig26.C
blob443fa3d089d002598ce4ffd5d91a852c65afb79c
1 // PR c++/105925
2 // { dg-do compile { target c++20 } }
4 struct V
6     int i;
7     double d;
8 };
10 struct X
12     union
13     {
14         int x;
15         V y;
16     };
19 X foo()
21     return {.y = {0, 0.0}};