Debian Codegraph @

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

raw
1 // PR c++/91360 - Implement C++20 P1143R2: constinit
2 // { dg-do compile { target c++20 } }
3
4 struct S { };
5 constinit extern S s;
6 constinit S s2 = { };
7
8 struct T {
9 int i;
10 };
11
12 constinit T t;
13 struct U : T {
14 int j;
15 };
16 constinit U u;