blob: 17e21b815a9527ada73c3aaabf3c65f6950ffcd5 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed visibility
class foo {
protected:
int i; // { dg-message "" } protected
};
class bar : public foo {
public:
friend void baz (foo *);
};
void baz (foo *f)
{
f->i = 1; // error: i is protected// { dg-error "" } .*
}