summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/koenig7.C
blob: bc54ba96b6b95aa4823a9bd74256a547b153654b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/34870

template <typename T>
struct Foo
{
  friend void func(const Foo &) {}
};

void check(const Foo<int> & x)
{
  func(x);
}