OSDN Git Service

2004-05-20 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 991230-1.c
1 /* { dg-do run { target i?86-*-* } } */
2 /* { dg-options "-O -ffast-math -mtune=i486" } */
3
4 /* Test that floating point greater-than tests are compiled correctly with
5    -ffast-math.  */
6
7 extern void abort (void);
8
9 static int gt (double a, double b)
10 {
11   if (a > b)
12     return 4;
13   return 0;
14 }
15
16 static double zero = 0.0;
17
18 int main ()
19 {
20   if (gt (zero, zero))
21     abort ();
22   return 0;
23 }