blob: 9bec6ba5846fcda3ffe5fcff5fc246c9f53b7412 [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();
B::g();
}
};