projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate two tests. Mention the platforms in canonical order.
[gnulib.git]
/
tests
/
test-isnanf.h
diff --git
a/tests/test-isnanf.h
b/tests/test-isnanf.h
index
7f6eb12
..
f3f387c
100644
(file)
--- a/
tests/test-isnanf.h
+++ b/
tests/test-isnanf.h
@@
-34,6
+34,10
@@
} \
while (0)
} \
while (0)
+/* 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 ()
{
int
main ()
{
@@
-45,7
+49,7
@@
main ()
ASSERT (!isnanf (-2.718e30f));
ASSERT (!isnanf (-2.718e-30f));
ASSERT (!isnanf (0.0f));
ASSERT (!isnanf (-2.718e30f));
ASSERT (!isnanf (-2.718e-30f));
ASSERT (!isnanf (0.0f));
- ASSERT (!isnanf (-
0.0f
));
+ ASSERT (!isnanf (-
zero
));
/* Infinite values. */
ASSERT (!isnanf (1.0f / 0.0f));
ASSERT (!isnanf (-1.0f / 0.0f));
/* Infinite values. */
ASSERT (!isnanf (1.0f / 0.0f));
ASSERT (!isnanf (-1.0f / 0.0f));