2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / template26.C
blob3f5de3d7ab6a48b98103b997c7ddf6903959f05a
1 // { dg-do assemble  }
2 // GROUPS passed templates
3 class V {
4  public:
5   V();
6   V(int);
7   };
9 template <int I> class AA: public virtual V {
10  public:
11   AA();
12   AA(int);
13   };
15 template <int I> class BB : public virtual V {
16  public:
17   BB();
18   BB(int);
19   };
21 template <int I> AA<I>::AA() {}
22 template <int I> AA<I>::AA(int i): V(i) {}
23 template <int I> BB<I>::BB() {}
24 template <int I> BB<I>::BB(int i) {}
26 class CC : public AA<1>, public BB<2> {
27  public:
28   CC();
29   CC(int);
30   };