14 feclearexcept (FE_ALL_EXCEPT
);
15 if (nextafterf (m
, i
) != i
)
17 puts ("nextafterf+ failed");
20 if (fetestexcept (FE_OVERFLOW
) == 0)
22 puts ("nextafterf+ did not overflow");
25 feclearexcept (FE_ALL_EXCEPT
);
26 if (nextafterf (-m
, -i
) != -i
)
28 puts ("nextafterf- failed");
31 if (fetestexcept (FE_OVERFLOW
) == 0)
33 puts ("nextafterf- did not overflow");
39 feclearexcept (FE_ALL_EXCEPT
);
40 if (nextafter (dm
, di
) != di
)
42 puts ("nextafter+ failed");
45 if (fetestexcept (FE_OVERFLOW
) == 0)
47 puts ("nextafter+ did not overflow");
50 feclearexcept (FE_ALL_EXCEPT
);
51 if (nextafter (-dm
, -di
) != -di
)
53 puts ("nextafter failed");
56 if (fetestexcept (FE_OVERFLOW
) == 0)
58 puts ("nextafter- did not overflow");