summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access1.C
blob: 9d7104105b42d48dba2b3e243e057620a354dd7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// Bug: access declarations are broken.

class A {
public:
  void foo ();
};

class B: private A {
public:
  A::foo;
};

void foo() {
  B b;
  b.foo ();			// { dg-bogus "" } 
}