OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit23.C
1 // Build don't run:
2 // GROUPS passed templates
3 // Special g++ Options: -ansi -pedantic-errors -w
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 }