(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
friend51.C
// PR c++/38392
// { dg-do link }

void Function();

int main()
{
  Function();
}

template <typename T>
struct Test
{
  friend void Function() { }
};

template class Test<int>;