summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template25.C
blob: 43f69a55e9e42092741b32f3da3422395db58caf (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
// { dg-do assemble  }
// GROUPS passed templates
template <class T>
class Temp_Base
{};

template <class T>
class Temp_Derived
: public Temp_Base<T>
{
public:
  Temp_Derived (int i = 10) {}
};


class Base
{
  float r_;
public:
  Base (float r) : r_(r) {}
};

class Derived
: public Base
{
private:
  Temp_Base<int>*  boo_;	   
public:
  Derived (float);
};

Derived::
Derived (float form)
: Base(form),
  boo_(new Temp_Derived<int>)
{}