1#include <math.h> 2 3static const double zero = 0.0; 4static const double pone = 1.0; 5static const double none = -1.0; 6static const double pinf = 1.0 / 0.0; 7static const double ninf = -1.0 / 0.0; 8 9int 10main () 11{ 12 if (pinf != pone/zero) 13 abort (); 14 15 if (ninf != none/zero) 16 abort (); 17 18#ifdef HUGE_VAL 19 if (HUGE_VAL != pinf) 20 abort (); 21 22 if (-HUGE_VAL != ninf) 23 abort (); 24#endif 25 26 exit (0); 27} 28