summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend51.C
blob: d2d1ad799d88e45a9b1421456a8b83e585e9c02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/38392
// { dg-do link }

void Function();

int main()
{
  Function();
}

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

template class Test<int>;