Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 class A
4 {
5 int i;
6 protected:
7 A(int i): i(i) {}
8 };
9
10 struct B: A
11 {
12 using A::A;
13 };
14
15 B b(42); // { dg-error "this context" }