projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
have bootstrap initialize a `gnulib' submodule in a git checkout
[gnulib.git]
/
tests
/
test-ceill.c
diff --git
a/tests/test-ceill.c
b/tests/test-ceill.c
index
5701246
..
80ff75b
100644
(file)
--- a/
tests/test-ceill.c
+++ b/
tests/test-ceill.c
@@
-38,6
+38,10
@@
} \
while (0)
} \
while (0)
+/* 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;
+
int
main ()
{
int
main ()
{
@@
-47,7
+51,7
@@
main ()
/* Zero. */
ASSERT (ceill (0.0L) == 0.0L);
/* Zero. */
ASSERT (ceill (0.0L) == 0.0L);
- ASSERT (ceill (-
0.0L
) == 0.0L);
+ ASSERT (ceill (-
zero
) == 0.0L);
/* Positive numbers. */
ASSERT (ceill (0.3L) == 1.0L);
ASSERT (ceill (0.7L) == 1.0L);
/* Positive numbers. */
ASSERT (ceill (0.3L) == 1.0L);
ASSERT (ceill (0.7L) == 1.0L);