Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constinit4.C
blob: 0630e18ee0c0bf4a1fed213af4055e4b1ce5de6f [
file
] [
log
] [
blame
]
// PR c++/91360 - Implement C++20 P1143R2: constinit
// { dg-do compile { target c++20 } }
struct
S
{
};
constinit
extern
S s
;
constinit S s2
=
{
};
struct
T
{
int
i
;
};
constinit T t
;
struct
U
:
T
{
int
j
;
};
constinit U u
;