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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-init11.C
blob
79ad61895b083758f7dafe30fea75f78da18f313
1
// PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
2
// { dg-do compile { target c++20 } }
3
4
struct S {
5
int i;
6
constexpr S(int) : i(10) {}
7
};
8
9
struct W {
10
constexpr W(int) : s(8), p() {}
11
12
S s;
13
int *p;
14
};
15
16
constexpr auto a = W(42);