blob: 4eb3cae805058587fc1267873724967498c64612 [file] [log] [blame]
// 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
};