Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-nsdmi3.C

raw
1 // PR c++/101073
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-fno-elide-constructors" }
4
5 struct Y
6 {
7 int a;
8 };
9
10 struct X
11 {
12 Y b = Y{1};
13 Y c = this->b;
14 };
15
16 constexpr X o = { };
17 static_assert(o.b.a == 1 && o.c.a == 1, "");