Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/inh-ctor1.C

raw
1 // { dg-do compile { target c++11 } }
2
3 struct A
4 {
5 int i;
6 constexpr A(int i): i(i) {}
7 };
8
9 struct B: A
10 {
11 using A::A;
12 };
13
14 constexpr B b(42);
15
16 #define SA(X) static_assert((X),#X)
17 SA(b.i == 42);