X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-roundl.c;h=ddbf4744417b3a87f0c1a62d7d0e190958dec7ab;hb=c7cf9c5005c207ccc24581f0bddb48a5864d443c;hp=51cd1cdd9e30cebbcb54381f1b6ee0f42b64fd0c;hpb=b7cb23a66cd14b33c65e4fc95cbc5e6a4ed51fee;p=gnulib.git diff --git a/tests/test-roundl.c b/tests/test-roundl.c index 51cd1cdd9..ddbf47444 100644 --- a/tests/test-roundl.c +++ b/tests/test-roundl.c @@ -28,6 +28,7 @@ #include "fpucw.h" #include "isnanl-nolibm.h" +#include "nan.h" #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 (isnanl (roundl (0.0L / 0.0L))); + ASSERT (isnanl (roundl (NaNl ()))); return 0; }