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