summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net30.C
blob: 2a96ed7a060c5614260e045d020a506c8a4e56ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }

class X {
public:
  void x(void);
};

class Y : public X {
};

class Z : private Y {
public:
  void y(void);
};

void Z::y(void) {
  x();  // should be OK
}