Commit 1c8d13fe by Jason Merrill

just return failure

From-SVN: r33067
parent 2bdb0643
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
// Special g++ Options: -O2 // Special g++ Options: -O2
#include <cstdlib>
struct Base { Base() {} }; // removing the constructor fixes the problem struct Base { Base() {} }; // removing the constructor fixes the problem
struct Derived : Base {}; // so does removing the base class struct Derived : Base {}; // so does removing the base class
...@@ -13,5 +11,5 @@ int main() { ...@@ -13,5 +11,5 @@ int main() {
Derived* array[1]; // making this Base*[1] does not fix the problem Derived* array[1]; // making this Base*[1] does not fix the problem
array[count++] = new Derived (); // but then new Base() does array[count++] = new Derived (); // but then new Base() does
if (count!=1) if (count!=1)
std::abort(); return 1;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment