projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test also the types 'long double' and 'int64_t'.
[gnulib.git]
/
tests
/
test-roundl.c
diff --git
a/tests/test-roundl.c
b/tests/test-roundl.c
index
51cd1cd
..
ddbf474
100644
(file)
--- a/
tests/test-roundl.c
+++ b/
tests/test-roundl.c
@@
-28,6
+28,7
@@
#include "fpucw.h"
#include "isnanl-nolibm.h"
#include "fpucw.h"
#include "isnanl-nolibm.h"
+#include "nan.h"
#define ASSERT(expr) \
do \
#define ASSERT(expr) \
do \
@@
-97,7
+98,7
@@
main ()
ASSERT (roundl (1.0 / 0.0L) == 1.0 / 0.0L);
ASSERT (roundl (-1.0 / 0.0L) == -1.0 / 0.0L);
/* NaNs. */
ASSERT (roundl (1.0 / 0.0L) == 1.0 / 0.0L);
ASSERT (roundl (-1.0 / 0.0L) == -1.0 / 0.0L);
/* NaNs. */
- ASSERT (isnanl (roundl (
0.0L / 0.0L
)));
+ ASSERT (isnanl (roundl (
NaNl ()
)));
return 0;
}
return 0;
}