summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit26.C
blob: ba50fac1c4f806896d8a0114987b9bf6f03457c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do link  }
// GROUPS passed templates
template <class T>
int foo(T t) { return 1; }

template <>
int foo(int i) { return 0; }

int main()
{
  (int (*)(int)) &foo<int>;
}