aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inh-ctor9.C
blob: 39751013bf3c95c8d9097a1faced257dfb457d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++11 } }

class A
{
  int i;
protected:
  A(int i): i(i) {}
};

struct B: A
{
  using A::A;			// { dg-error "protected" }
};

B b(42);			// { dg-error "this context" }