Debian Codegraph @

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

raw
1 // PR c++/103299
2 // { dg-do compile { target c++20 } }
3
4 struct foo {
5 union {
6 int fp1{};
7 char fp2;
8 };
9 };
10
11 static_assert(foo{.fp2={}}.fp2 == 0);