mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-19 05:03:58 +08:00
just return failure
From-SVN: r33067
This commit is contained in:
parent
2bdb0643b3
commit
1c8d13fe19
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user