summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/lookup7.C
blob: 0e05c5f752cae6c0c7de52e1e27958b88b4f2be2 (plain)
1
2
3
4
5
6
7
8
9
class S;

template<class T>
int f(T, S);

class S {
  template<class T>
  friend int f(T t, S) { t; return 0; }
};