1// PR c++/38392 2// { dg-do link } 3 4void Function(); 5 6int main() 7{ 8 Function(); 9} 10 11template <typename T> 12struct Test 13{ 14 friend void Function() { } 15}; 16 17template class Test<int>; 18