Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.brendan / template21.C
blob3bfd0cfc48137bdcf4d455f883b2a7dad97a947a
1 // { dg-do assemble  }
2 // GROUPS passed templates
3 template<class T>
4 class L {
5 public:
6     L();
8     T x[30];
9     int doit(int i) const;
12 #ifdef BUG
13 template<class T>
14 int
15 L<T>::doit(int i) const
17     return x[i].z;
19 #endif
21 class X {
22 public:
23     class Y {
24     public:
25         Y();
26         Y(int);
28         int z;
29     };
30     
31     L<Y> ly;
34 #ifndef BUG
35 template<class T>
36 int
37 L<T>::doit(int i) const
39     return x[i].z;
41 #endif
43 static X x;