Sign in
gnu
/
gcc
/
a25982ada523689c8745d7fb4b1b93c8f5dab2e7
/
.
/
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
;