summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template28.C
blob: 7359fa12d3b119a5ae150963e0c5188d21eb4592 (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
// { dg-do run  }
// PRMS Id: 7179

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

class Wheels{
public:
   Wheels();
} ;

class Shop
{
public:
   Shop();
private:
   Car<Wheels> car ;
} ;

Wheels::Wheels() {}

Shop::Shop() {}

int main()
{
   Shop shop ;
   return 0 ;
}

template <class T>
Car<T>::Car() {}