just return failure

From-SVN: r33067
This commit is contained in:
Jason Merrill 2000-04-10 21:11:27 -04:00
parent 2bdb0643b3
commit 1c8d13fe19

View 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;
}