summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/template7.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/template7.C48
1 files changed, 48 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template7.C b/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
new file mode 100644
index 000000000..8fb636e7a
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
@@ -0,0 +1,48 @@
+// { dg-do assemble }
+// GROUPS passed templates
+template <class ET>
+class ChainElem {
+public:
+
+ ET data;
+};
+
+template <class ET>
+class Chain {
+public:
+
+ ChainElem<ET> *first;
+
+ virtual ~Chain() {}
+
+};
+
+struct B {
+};
+
+struct X : B {
+ ~X ();
+};
+
+struct TBNFexpression {
+};
+
+struct TCaseLabelPair {
+};
+
+struct TVariant {
+ Chain<TCaseLabelPair> CaseLabelList;
+};
+
+struct TCaseConstruct {
+ Chain<TBNFexpression> TagFieldPrefixes;
+ Chain<TVariant> Variants;
+};
+
+struct Production {
+ X TypeName;
+};
+
+struct SimpleSyntax {
+ Chain<Production> Productions;
+};