☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constinit4.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/constinit4.C
code
plain
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;