* gcc.dg/i386-fpcvt-1.c: New test.
[official-gcc.git] / gcc / testsuite / gcc.dg / 991230-1.c
blob39b259541de4fd1c8ea6c8b578e1a582f12ed3ed
1 /* { dg-do run { target i?86-*-* } } */
2 /* { dg-options "-O -ffast-math -mcpu=i486" } */
4 /* Test that floating point greater-than tests are compiled correctly with
5 -ffast-math. */
7 extern void abort (void);
9 static int gt (double a, double b)
11 if (a > b)
12 return 4;
13 return 0;
16 static double zero = 0.0;
18 int main ()
20 if (gt (zero, zero))
21 abort ();
22 return 0;