getloadavg: clean out old Emacs and Autoconf cruft
[gnulib.git] / tests / test-modff.c
index 42fd83f..295ba3d 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (modff, float, (float, float *));
 
+#include <float.h>
+
 #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;
 }