Debian Codegraph @

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

raw
1 // PR c++/71446
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4
5 struct T { void *a; int b; };
6 struct U { int a; union { int b; union { long c; short d; }; }; int e; };
7 void bar (T);
8 void baz (U);
9
10 void
11 foo ()
12 {
13 bar ({.b = 1});
14 baz ({.c = 5L, .e = 6});
15 }