OSDN Git Service

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