projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Work around Solaris 10 math.h bug.
[gnulib.git]
/
tests
/
test-math.c
diff --git
a/tests/test-math.c
b/tests/test-math.c
index
ec654b2
..
aa51f85
100644
(file)
--- a/
tests/test-math.c
+++ b/
tests/test-math.c
@@
-43,7
+43,11
@@
int
main ()
{
double d = NAN;
+ double zero = 0.0;
if (numeric_equal (d, d))
return 1;
+ d = HUGE_VAL;
+ if (!numeric_equal (d, 1.0 / zero))
+ return 1;
return 0;
}