summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit19.C
blob: 053629ad7281d41a827802a17922478ce6bfedd5 (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>(int i) { return 0; }

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