summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/dtor2-aux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/opt/dtor2-aux.cc')
-rw-r--r--gcc/testsuite/g++.dg/opt/dtor2-aux.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/opt/dtor2-aux.cc b/gcc/testsuite/g++.dg/opt/dtor2-aux.cc
new file mode 100644
index 000000000..9e87cc817
--- /dev/null
+++ b/gcc/testsuite/g++.dg/opt/dtor2-aux.cc
@@ -0,0 +1,16 @@
+// { dg-do compile }
+// { dg-options "" }
+
+#include "dtor2.h"
+
+A::A () {}
+A::~A () {}
+
+void B::mb () {}
+B::B (int) {}
+B::~B () {}
+
+void C::mc () {}
+C::C (int x) : B (x) {}
+
+D::~D () {}