Debian Codegraph @

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

raw
1 // PR c++/72457
2 // { dg-do compile { target c++11 } }
3
4 struct A {
5 int i;
6 constexpr A(): i(0) {}
7 };
8
9 struct B: A { };
10
11 struct C
12 {
13 B b;
14 constexpr C() : b{} {}
15 };