Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/explicit28.C

raw
1 // { dg-do link }
2 // GROUPS passed templates
3 template <class T>
4 int foo(T t) { return 1; }
5
6 template <>
7 int foo(int i) { return 0; }
8
9 int main()
10 {
11 return (*((int (*)(int)) &foo<int>))(3);
12 }