diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-04-10 21:11:27 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-04-10 21:11:27 -0400 |
commit | 1c8d13fe19977cdd2f62c672ca4d4bacc6301975 (patch) | |
tree | ec641b0a527f3af17906e7d130be109eee60bef8 | |
parent | 2bdb0643b3ae045242492171070c11957727150c (diff) | |
download | gcc-1c8d13fe19977cdd2f62c672ca4d4bacc6301975.zip gcc-1c8d13fe19977cdd2f62c672ca4d4bacc6301975.tar.gz gcc-1c8d13fe19977cdd2f62c672ca4d4bacc6301975.tar.bz2 |
just return failure
From-SVN: r33067
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/badopt1.C | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/badopt1.C b/gcc/testsuite/g++.old-deja/g++.other/badopt1.C index fbc4b12..eefa00e 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/badopt1.C +++ b/gcc/testsuite/g++.old-deja/g++.other/badopt1.C @@ -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; } |