summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/inh-ctor9.C
blob: dc5e86b634850668dffe70769e6286a668d334d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "-std=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" }