summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit6.C
blob: ea1f97a742aabdbcfe80d01592453ef92e7f7394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do link  }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template <class T>
int foo(T t);

template <>
int foo(int i) { return 0; }

int main()
{
  return foo<int>(3.0);
}