projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bdb064
)
just return failure
author
Jason Merrill
<jason@gcc.gnu.org>
Tue, 11 Apr 2000 01:11:27 +0000
(21:11 -0400)
committer
Jason 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
patch
|
blob
|
history
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
(file)
--- 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
;
}