summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/template1.C
blob: be4c957879cbea5ce846ab2c4875b5bd739f0f76 (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
// { dg-do assemble  }
// prms-id: 10038
template < class Referencee >
class Referencer
{
public:
    Referencer (Referencee const * pReferencee);
};

template <class T>
class Array
{
public:
    int addElement (T const & e);
    int addElement ();
};

class ScenarioGroup;

class ScenarioSet : public Array< Referencer<ScenarioGroup> >
{
    typedef Array< Referencer<ScenarioGroup> > arrayBase;
    void addElement(ScenarioGroup *group)
	{
	    arrayBase::addElement(group);
	}
};