summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash32.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash32.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash32.C29
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash32.C b/gcc/testsuite/g++.old-deja/g++.other/crash32.C
new file mode 100644
index 000000000..b9c4cf98c
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash32.C
@@ -0,0 +1,29 @@
+// { dg-do assemble }
+// Origin: Jakub Jelinek <jakub@redhat.com>
+
+struct foo
+{
+ enum e
+ {
+ not // { dg-error "" }
+ }; // { dg-bogus "" }
+ ~foo(); // { dg-bogus "" "" { xfail *-*-* } }
+ void x (foo *&a, bool b = (unsigned char)0);
+}; // { dg-bogus "" "" { xfail *-*-* } }
+
+namespace N
+{
+ struct bar;
+
+ template<class T>
+ struct baz
+ {
+ baz(T *p);
+ };
+
+ typedef baz<bar> c;
+}
+
+{
+ int a;
+};