aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/visibility2.C
blob: 74021d58db8eec139d7ebfccc3d1680d22289d8c (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// GROUPS passed visibility
class X {
      void g (int); // { dg-error "" } private
public:
  void g (double);
};
	
class Y : public X { void f() { g (1); } }; // { dg-error "" } private