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

int foo(int i);

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