diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-28 22:10:18 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-28 22:10:18 +0000 |
commit | 6277efbe76e89d6009cbff94e8060097165aa94c (patch) | |
tree | 835eb3c27b4170427ed7c430b4781ae2fe66d299 | |
parent | 66bf0ee5fe22e132dbf5b519bdb135042512a3d4 (diff) | |
download | gcc-6277efbe76e89d6009cbff94e8060097165aa94c.tar.gz |
2003-03-28 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/ieee/fp-cmp-6.c: Correct test for -O0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64987 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-6.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 66a35ad3690..b99dd59882a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-03-28 Roger Sayle <roger@eyesopen.com> + + * gcc.c-torture/execute/ieee/fp-cmp-6.c: Correct test for -O0. + 2003-03-28 Mark Mitchell <mark@codesourcery.com> * g++.dg/init/attrib1.C: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-6.c b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-6.c index 9111d6e5c46..782455831b0 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-6.c +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-6.c @@ -2,7 +2,8 @@ const double dnan = 1.0/0.0 - 1.0/0.0; double x = 1.0; -extern void link_error (); +extern void link_error (void); +extern void abort (void); main () { @@ -29,3 +30,10 @@ main () exit (0); } +#ifndef __OPTIMIZE__ +void link_error (void) +{ + abort (); +} +#endif + |