OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / template28.C
1 // PRMS Id: 7179
2
3 template <class T>
4 class Car{
5 public:
6    Car();
7 } ;
8
9 class Wheels{
10 public:
11    Wheels();
12 } ;
13
14 class Shop
15 {
16 public:
17    Shop();
18 private:
19    Car<Wheels> car ;
20 } ;
21
22 Wheels::Wheels() {}
23
24 Shop::Shop() {}
25
26 int main()
27 {
28    Shop shop ;
29    return 0 ;
30 }
31
32 template <class T>
33 Car<T>::Car() {}