// { dg-do link } // { dg-options "-ansi -pedantic-errors -w" } // GROUPS passed templates template int foo(T t) { return 1; } template <> int foo(int i) { return 0; } int main() { return foo(3.0); }