summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr47218.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/other/pr47218.C')
-rw-r--r--gcc/testsuite/g++.dg/other/pr47218.C21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/pr47218.C b/gcc/testsuite/g++.dg/other/pr47218.C
new file mode 100644
index 000000000..f94e15742
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/pr47218.C
@@ -0,0 +1,21 @@
+/* { dg-do link } */
+/* { dg-options "-save-temps" } */
+/* { dg-additional-sources "pr47218-1.C" } */
+
+#include "pr47218.h"
+
+Foo3::~Foo3 ()
+{
+ ((FooBaseBase1*)this)->Bar();
+}
+
+void Foo3::Bar()
+{
+}
+
+int main ()
+{
+ return 0;
+}
+
+// { dg-final cleanup-saved-temps }