blob: f3086a9f980ae0030b0b32bba62c0baa5a7c5cbd [file] [log] [blame]
// { dg-do compile }
struct A;
struct B {
friend struct A;
private:
static void f();
protected:
static void g();
};
struct A {
friend void g(A) {
B::f(); // { dg-error "private" }
B::g(); // { dg-error "protected" }
}
};