summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit28.C
blob: 79d8dd01d073bdc10684a0490364019b845469a6 (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()
{
  return (*((int (*)(int)) &foo<int>))(3);
}