* g++.old-deja/g++.oliva/delete3.C (main): Catch the exception.
authorRichard Henderson <rth@redhat.com>
Sun, 11 Mar 2001 01:56:54 +0000 (17:56 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 11 Mar 2001 01:56:54 +0000 (17:56 -0800)
From-SVN: r40377

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

index f61b7745c60567727ad5e473bdf2da5f5390cde8..5171aa7c0aa71fb8b0ae09059ae3715961189af2 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 44299f2c9b7d2cf6b0173f0772e6f64951aa18e0..0907317b5690f801ee4d69508e863b656b0d2640 100644 (file)
@@ -29,8 +29,9 @@ struct Bar : virtual Foo {
 };
 
 int main() {
-  delete [] new Bar[2];
+  try {
+    delete [] new Bar[2];
+  } catch (...) {
+  }
   abort();
 }
-
-