summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error11.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/error11.C')
-rw-r--r--gcc/testsuite/g++.dg/other/error11.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/error11.C b/gcc/testsuite/g++.dg/other/error11.C
new file mode 100644
index 000000000..d8a641c2b
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/error11.C
@@ -0,0 +1,17 @@
+/* { dg-options "-O1" } */
+struct A
+{
+ ERROR; /* { dg-error "ERROR" } */
+ ~A();
+};
+
+struct B
+{
+ virtual ~B();
+};
+
+struct C : B, A {};
+
+struct D : C {};
+
+D d;