projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
[gnulib.git]
/
tests
/
test-truncf1.c
diff --git
a/tests/test-truncf1.c
b/tests/test-truncf1.c
index
0fefc7f
..
8915f9f
100644
(file)
--- a/
tests/test-truncf1.c
+++ b/
tests/test-truncf1.c
@@
-23,6
+23,8
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include "isnanf.h"
+
#define ASSERT(expr) \
do \
{ \
#define ASSERT(expr) \
do \
{ \
@@
-76,7
+78,7
@@
main ()
ASSERT (truncf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (truncf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
ASSERT (truncf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (truncf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
- ASSERT (isnan (truncf (NaN ())));
+ ASSERT (isnan
f
(truncf (NaN ())));
return 0;
}
return 0;
}