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); 6 7 template <> foo(int i)8 int foo(int i) { return 0; } 9 main()10 int main() 11 { 12 return foo<int>(3.0); 13 } 14