Commit 3fe5b143 by Bernd Schmidt Committed by Bernd Schmidt

New testcase

From-SVN: r31137
parent 47918b57
1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
* gcc.dg/991230-1.c: New test.
Wed Dec 29 23:48:49 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/991229-3.c: New test.
......
/* { dg-do run { target i?86-*-* } } */
/* { dg-options "-O -ffast-math -mcpu=i486" } */
/* Test that floating point greater-than tests are compiled correctly with
-ffast-math. */
static int gt (double a, double b)
{
if (a > b)
return 4;
return 0;
}
static double zero = 0.0;
int main ()
{
if (gt (zero, zero))
abort ();
return 0;
}
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