exp* tests: More tests.
[gnulib.git] / tests / test-expl.c
index 21dc65e..7309106 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (expl, long double, (long double));
 
+#include <float.h>
+
 #include "fpucw.h"
 #include "macros.h"
 
-volatile long double x;
-long double y;
+#define DOUBLE long double
+#define L_(literal) literal##L
+#define MANT_DIG LDBL_MANT_DIG
+#define EXP expl
+#define RANDOM randoml
+#include "test-exp.h"
 
 int
 main ()
@@ -41,5 +47,7 @@ main ()
   y = expl (x);
   ASSERT (y >= 1.822118800L && y <= 1.822118801L);
 
+  test_function ();
+
   return 0;
 }