summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit23.C
blob: bf6a52632319a73fd3c9f406a64c3d05158dec48 (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) { return 1; }

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

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