X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-frexp.c;h=96c640f7fcfb0bf2f26437d6e6de833ab39b6b21;hb=8597e37982fbac935eca0bc082b67d4373186856;hp=912ba200c314461c4688ac192f8aa40ba4e10132;hpb=6136fd62a3342532f17ccfd5f24db97764978448;p=gnulib.git diff --git a/tests/test-frexp.c b/tests/test-frexp.c index 912ba200c..96c640f7f 100644 --- a/tests/test-frexp.c +++ b/tests/test-frexp.c @@ -24,6 +24,8 @@ #include #include +#include "isnan.h" + #define ASSERT(expr) if (!(expr)) abort (); /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */ @@ -64,7 +66,7 @@ main () double mantissa; x = NaN (); mantissa = frexp (x, &exp); - ASSERT (mantissa != mantissa); + ASSERT (isnan (mantissa)); } { /* Positive infinity. */