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

15 lines
278 B
C

// Build don't link:
// GROUPS passed visibility
struct base
{
protected:
void base_func() {}// ERROR - .*is protected.*
};
struct derived : public base
{
protected:
void derived_func(base *ptr) { ptr->base_func(); }// ERROR - within this context
};