aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template26.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/template26.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/template26.C31
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template26.C b/gcc/testsuite/g++.old-deja/g++.brendan/template26.C
new file mode 100644
index 00000000000..6dc15551f81
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/template26.C
@@ -0,0 +1,31 @@
+// Build don't link:
+// 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);
+ };
+