Tests for module 'log2l'.
[gnulib.git] / tests / test-fmodl.c
index 44dabee..95a38b8 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (fmodl, long double, (long double, long double));
 
+#include <float.h>
+
 #include "fpucw.h"
 #include "macros.h"
 
-volatile long double x;
-volatile long double y;
-long double z;
+#define DOUBLE long double
+#define L_(literal) literal##L
+#define MANT_DIG LDBL_MANT_DIG
+#define MAX_EXP LDBL_MAX_EXP
+#define FMOD fmodl
+#define RANDOM randoml
+#include "test-fmod.h"
 
 int
 main ()
@@ -43,5 +49,7 @@ main ()
   z = fmodl (x, y);
   ASSERT (z >= 2.962721817L && z <= 2.962721819L);
 
+  test_function ();
+
   return 0;
 }