aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/crash15.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/crash15.C22
1 files changed, 1 insertions, 21 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
index a4b1ffabee3..b5287f33795 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
@@ -1,21 +1 @@
-// Build don't link:
-// GROUPS passed old-abort
-#include <iostream.h>
-
-class A {
- public:
- virtual ~A() {cout << "executed ~A()\n";};
-};
-
-class B : public A {
- public:
- virtual ~B() {cout << "executed ~B()\n";};
-};
-
-main() {
- cout << "starting\n";
- B b;
- b.~A();// ERROR - destructor
- cout << "done\n";
-};
-
+int