8sa1-gcc/gcc/testsuite/g++.old-deja/g++.bob/template1.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

28 lines
481 B
C

// Build don't link:
// 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);
}
};