X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-isnanf.h;h=b40f2e10d6fd4b8c0d920b93df539c0ea5b47637;hb=8e20755cd51476b841e55faf7c21a57d8884d130;hp=d071b2cc04cac284b4d7b095ae7c351ca6574d4a;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/test-isnanf.h b/tests/test-isnanf.h index d071b2cc0..b40f2e10d 100644 --- a/tests/test-isnanf.h +++ b/tests/test-isnanf.h @@ -18,13 +18,10 @@ #include +#include "minus-zero.h" #include "nan.h" #include "macros.h" -/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0f. - So we use -zero instead. */ -float zero = 0.0f; - int main () { @@ -36,7 +33,7 @@ main () ASSERT (!isnanf (-2.718e30f)); ASSERT (!isnanf (-2.718e-30f)); ASSERT (!isnanf (0.0f)); - ASSERT (!isnanf (-zero)); + ASSERT (!isnanf (minus_zerof)); /* Infinite values. */ ASSERT (!isnanf (1.0f / 0.0f)); ASSERT (!isnanf (-1.0f / 0.0f));