repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constinit4.C
blob
0630e18ee0c0bf4a1fed213af4055e4b1ce5de6f
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;