summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec7.C
blob: 81be8f1d55165fd31b747e7ba40dc7efea51e4a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do run  }
extern "C" void abort();

template <class T>
void f(T t1, T t2);

template <>
void f(int i, int j) 
{
  abort();
}

void f(short s, char c)
{
}

int main()
{
  f(3, 'c');
}