8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/visibility2.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

11 lines
195 B
C

// Build don't link:
// GROUPS passed visibility
class X {
void g (int); // ERROR - private
public:
void g (double);
};
class Y : public X { void f() { g (1); } }; // ERROR - private