summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit21.C
blob: 8d22f3ec2fc6fa445260b9de3dc2f1c92dc5b5d4 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// GROUPS passed templates
template <class T>
T foo(T* t);

template <>
int foo<char>(char c); // { dg-error "" } does not match declaration.

template <>
int bar<char>(); // { dg-error "" } no template bar.