* tests/test-signbit.c (minus_zerol): Delete, and replace with
'-zerol'. This may break on HP-UX/hppa, but at least makes the
entire testsuite consistent and avoids an Irix 6.2 bug.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2008-10-06 Eric Blake <ebb9@byu.net>
+
+ test-signbit: avoid tripping Irix cc bug on -0.0L
+ * tests/test-signbit.c (minus_zerol): Delete, and replace with
+ '-zerol'. This may break on HP-UX/hppa, but at least makes the
+ entire testsuite consistent and avoids an Irix 6.2 bug.
+
2008-10-05 Bruno Haible <bruno@clisp.org>
Jim Meyering <jim@meyering.net>
float zerof = 0.0f;
double zerod = 0.0;
long double zerol = 0.0L;
-/* We cannot use the expression '-zerol' here, because on HP-UX/hppa it
- evaluates to 0.0L, not -0.0L. */
-long double minus_zerol = -0.0L;
static void
test_signbitf ()
ASSERT (signbit (-2.718e-30L));
/* Zeros. */
ASSERT (!signbit (0.0L));
- if (1.0L / minus_zerol < 0)
+ if (1.0L / -zerol < 0)
ASSERT (signbit (-zerol));
else
ASSERT (!signbit (-zerol));