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

22 lines
283 B
C

// Build don't link:
// GROUPS passed visibility
#include <iostream.h>
class base {
public:
void f1 () { cout << "f1" << endl; };
void f2 () { cout << "f2" << endl; };
};
class deriv : public base {
void base :: f1();// ERROR - .*
};
int main ()
{
deriv d;
d.f2();
}