aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit23.C
blob: cdffb15bc66a061be4a75eed0db33de31a93ebd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Build don't run:
// 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);
}