OSDN Git Service

* g++.old-deja/g++.oliva/delete3.C (main): Catch the exception.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Mar 2001 01:56:54 +0000 (01:56 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Mar 2001 01:56:54 +0000 (01:56 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40377 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.oliva/delete3.C

index f61b774..5171aa7 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-10  Richard Henderson  <rth@redhat.com>
+
+       * g++.old-deja/g++.oliva/delete3.C (main): Catch the exception.
+
 2001-03-07  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * g++.old-deja/g++.other/crash31.C: XFAIL.
index 44299f2..0907317 100644 (file)
@@ -29,8 +29,9 @@ struct Bar : virtual Foo {
 };
 
 int main() {
-  delete [] new Bar[2];
+  try {
+    delete [] new Bar[2];
+  } catch (...) {
+  }
   abort();
 }
-
-