aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/template3.C
blob: 17378425a26e351f3b4ee95436b93706a6b8e360 (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
// Build don't link: 
// 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
};

main()
{
}