Commit 84dfe365 by Roger Sayle Committed by Roger Sayle

fp-cmp-6.c: Correct test for -O0.

2003-03-28  Roger Sayle  <roger@eyesopen.com>

	* gcc.c-torture/execute/ieee/fp-cmp-6.c:  Correct test for -O0.

From-SVN: r64987
parent 316a2456
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> 2003-03-28 Mark Mitchell <mark@codesourcery.com>
* g++.dg/init/attrib1.C: New test. * g++.dg/init/attrib1.C: New test.
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
const double dnan = 1.0/0.0 - 1.0/0.0; const double dnan = 1.0/0.0 - 1.0/0.0;
double x = 1.0; double x = 1.0;
extern void link_error (); extern void link_error (void);
extern void abort (void);
main () main ()
{ {
...@@ -29,3 +30,10 @@ main () ...@@ -29,3 +30,10 @@ main ()
exit (0); exit (0);
} }
#ifndef __OPTIMIZE__
void link_error (void)
{
abort ();
}
#endif
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