summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template26.C
blob: 3f5de3d7ab6a48b98103b997c7ddf6903959f05a (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
// { dg-do assemble  }
// GROUPS passed templates
class V {
 public:
  V();
  V(int);
  };

template <int I> class AA: public virtual V {
 public:
  AA();
  AA(int);
  };

template <int I> class BB : public virtual V {
 public:
  BB();
  BB(int);
  };

template <int I> AA<I>::AA() {}
template <int I> AA<I>::AA(int i): V(i) {}
template <int I> BB<I>::BB() {}
template <int I> BB<I>::BB(int i) {}

class CC : public AA<1>, public BB<2> {
 public:
  CC();
  CC(int);
  };