Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / ieee / hugeval.c
blob15f7088e19d673162a64e9c21b10483000cb6e32
1 #include <math.h>
3 static const double zero = 0.0;
4 static const double pone = 1.0;
5 static const double none = -1.0;
6 static const double pinf = 1.0 / 0.0;
7 static const double ninf = -1.0 / 0.0;
9 int
10 main ()
12 if (pinf != pone/zero)
13 abort ();
15 if (ninf != none/zero)
16 abort ();
18 #ifdef HUGE_VAL
19 if (HUGE_VAL != pinf)
20 abort ();
22 if (-HUGE_VAL != ninf)
23 abort ();
24 #endif
26 exit (0);