Debian Codegraph @

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

raw
1 // { dg-do link }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 // GROUPS passed templates
4 template <class T>
5 int foo(T t) { return 1; }
6
7 template <>
8 int foo<int>(int i) { return 0; }
9
10 int main()
11 {
12 return foo<int>(3.0);
13 }