blob: 89d2157995a87703f5472944c2e86ba5cc710187 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed visibility
struct base
{
protected:
void base_func() {}// { dg-error "" } .*is protected.*
};
struct derived : public base
{
protected:
void derived_func(base *ptr) { ptr->base_func(); }// { dg-error "" } within this context
};