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++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-nsdmi10.C
blob
35cb8acc15b5e44bd22472a81361d73eaf1dba5f
1
// PR c++/101073
2
// { dg-do compile { target c++14 } }
3
// { dg-additional-options "-fno-elide-constructors" }
4
// A copy of constexpr-nsdmi9.C.
5
6
struct Y
7
{
8
int a;
9
};
10
11
struct X
12
{
13
Y b = (c={5});
14
Y c = (b={1});
15
};
16
17
constexpr X o = { };
18
static_assert(o.b.a == 1 && o.c.a == 1, "");