just return failure
authorJason Merrill <jason@gcc.gnu.org>
Tue, 11 Apr 2000 01:11:27 +0000 (21:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 11 Apr 2000 01:11:27 +0000 (21:11 -0400)
From-SVN: r33067

gcc/testsuite/g++.old-deja/g++.other/badopt1.C

index fbc4b12..eefa00e 100644 (file)
@@ -3,8 +3,6 @@
 
 // Special g++ Options: -O2
 
-#include <cstdlib>
-
 struct Base { Base() {} }; // removing the constructor fixes the problem
 struct Derived : Base {}; // so does removing the base class
 
@@ -13,5 +11,5 @@ int main() {
   Derived* array[1]; // making this Base*[1] does not fix the problem
   array[count++] = new Derived (); // but then new Base() does
   if (count!=1)
-    std::abort();
+    return 1;
 }