OSDN Git Service

* gcc.dg/testsuite/c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 991230-1.c
1 /* { dg-do run { target i?86-*-* } } */
2 /* { dg-options "-O -ffast-math -mcpu=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 }