aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/access4.C
blob: 939bebcf01f540223b553dcb6594f695c424fa74 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }

struct A { // { dg-error "" } inaccessible
  static int i;
};

struct B : private A { };

struct C : public B {
  int f () { return A::i; } // { dg-error "" } context
};