summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/access8.C
blob: a11ea8e04943e49c1b4ae09e14412a94de67228c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// PR c++/29138

class A
{
public:
  int i;
  class A1
  {
    int j;
  };
};

class B : private A
{
public:
  A::i;
  A::A1;
};

void
f ()
{
  B b;
  B::A1 a1;
}