Correct name of POSIX.1-2001.
[gnulib.git] / tests / test-sqrtf.c
index 514eb7e..40abde6 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (sqrtf, float, (float));
 
+#include <float.h>
+
 #include "macros.h"
 
-volatile float x;
-float y;
+#define DOUBLE float
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define SQRT sqrtf
+#define RANDOM randomf
+#include "test-sqrt.h"
 
 int
 main ()
@@ -36,5 +42,7 @@ main ()
   y = sqrtf (x);
   ASSERT (y >= 0.7745966f && y <= 0.7745967f);
 
+  test_function ();
+
   return 0;
 }