summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/template3.C
blob: c440f47b9aa5b8d5ca66335cdd2773e8242230e9 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// { dg-do assemble  }
// prms-id: 9979

template < class Referencee >
class Referencer
{
public:
    Referencer() {}
};

template <class T>
class List
{
public:
    List() {}
};

template<class T, class KEY>
class Dictionary
{
public:
    Dictionary() : i_buckets (new List<T>[1234]) {}
    ~Dictionary() { delete [] i_buckets; }

    List<T> *		i_buckets;
};

class Exchangeable {};
class ExchangeableHandle {};

class ExchangeableList
    : public Dictionary<Referencer<Exchangeable>, ExchangeableHandle>
{
public:
    ExchangeableList(int size=0);
};

class ObjectExchange
{
public:
    ObjectExchange() {}

    ExchangeableList	i_theWatchList; // Instruments being monitored
};

int
main()
{
}