summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/pt3.C
blob: 201b1085ca7c37963aac3688892cce5612cc04b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// { dg-do assemble  }

template<class Repr>
class syHandle
{
protected:
  syHandle();
  ~syHandle();
  Repr *_repr;
};

template<class Repr>
syHandle<Repr>::~syHandle()
{
}

typedef char * char_ptr_t;

template <>
syHandle<char_ptr_t>::syHandle() 
{
    _repr = 0;
}

template <>
syHandle<char_ptr_t>::~syHandle() 
{
    _repr = 0;
}