(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
friend69.C
// { 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();
  }
};