Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/desig26.C

raw
1 // PR c++/105925
2 // { dg-do compile { target c++20 } }
3
4 struct V
5 {
6 int i;
7 double d;
8 };
9
10 struct X
11 {
12 union
13 {
14 int x;
15 V y;
16 };
17 };
18
19 X foo()
20 {
21 return {.y = {0, 0.0}};
22 }