Debian Codegraph @

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

raw
1 // PR c++/100111
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fno-elide-constructors" }
4
5 struct A {};
6 struct B : A { int b; constexpr B (A x) : A(x), b() {} };
7 struct C { B c; constexpr C () : c({}) {} } d;