aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec4.C
blob: b6e6858e0a05a92b06edc818ccc028f15f38c7c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link:

template <class T>
struct S {};

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

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

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