c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / constinit4.C
blob0630e18ee0c0bf4a1fed213af4055e4b1ce5de6f
1 // PR c++/91360 - Implement C++20 P1143R2: constinit
2 // { dg-do compile { target c++20 } }
4 struct S { };
5 constinit extern S s;
6 constinit S s2 = { };
8 struct T {
9   int i;
12 constinit T t;
13 struct U : T {
14   int j;
16 constinit U u;