summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec4.C
blob: d7ef63c31308cb2553a863369343beba74548c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }

template <class T>
struct S {};

template <>
struct S<int>
{
  void f();
  void g();
};

void S<int>::f() {}

template <>
void S<int>::g() {} // { dg-error "" } does not match any template declaration