X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-frexpl.c;h=a91afce46b05a38b84cde574d19261d79ac052e1;hb=3b5404b2d283870dccf966696b783f83ab2dfd58;hp=08042be4a17415b5117cb928f39227b57c59a274;hpb=33b602c44df79204ad59f2a3f160e5aae374a971;p=gnulib.git diff --git a/tests/test-frexpl.c b/tests/test-frexpl.c index 08042be4a..a91afce46 100644 --- a/tests/test-frexpl.c +++ b/tests/test-frexpl.c @@ -57,6 +57,10 @@ # define MIN_NORMAL_EXP LDBL_MIN_EXP #endif +/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0L. + So we use -zero instead. */ +long double zero = 0.0L; + static long double my_ldexp (long double x, int d) { @@ -113,7 +117,7 @@ main () { /* Negative zero. */ int exp = -9999; long double mantissa; - x = -0.0L; + x = -zero; mantissa = frexpl (x, &exp); ASSERT (exp == 0); ASSERT (mantissa == x);