X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-modff.c;h=295ba3d6bf356f98f10ae745cde0aadf8a48d76e;hb=dd91a295844a6e89ce67087164ea0f2e979b4b70;hp=42fd83fd404044f1c17606926418990fe457f6bf;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-modff.c b/tests/test-modff.c index 42fd83fd4..295ba3d6b 100644 --- a/tests/test-modff.c +++ b/tests/test-modff.c @@ -23,11 +23,16 @@ #include "signature.h" SIGNATURE_CHECK (modff, float, (float, float *)); +#include + #include "macros.h" -volatile float x; -float y; -float z; +#define DOUBLE float +#define L_(literal) literal##f +#define MANT_DIG FLT_MANT_DIG +#define MODF modff +#define RANDOM randomf +#include "test-modf.h" int main () @@ -44,5 +49,7 @@ main () ASSERT (y >= -0.972408f && y <= -0.972406f); ASSERT (z == -5.0f); + test_function (); + return 0; }