summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash2.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash2.C b/gcc/testsuite/g++.old-deja/g++.other/crash2.C
new file mode 100644
index 000000000..3d62d04eb
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash2.C
@@ -0,0 +1,9 @@
+// { dg-do assemble }
+
+struct A {
+ int rep;
+ static const A a(0); // { dg-error "" } initialization
+ static const A b = 3; // { dg-error "" } initialization
+ static const A& c = 2; // { dg-error "" } initialization
+ A(int x) : rep(x) {}
+};