aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit26.C
blob: 7d1616255b21560b42d774cabdc9674e4250d2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Build don't run:
// 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>;
}