install-reloc: Support multi-binary installation.
[gnulib.git] / tests / test-expf.c
index ed71383..77c15fa 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of expf() function.
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include "signature.h"
 SIGNATURE_CHECK (expf, 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 EXP expf
+#define RANDOM randomf
+#include "test-exp.h"
 
 int
 main ()
@@ -36,5 +42,7 @@ main ()
   y = expf (x);
   ASSERT (y >= 1.8221188f && y <= 1.8221189f);
 
+  test_function ();
+
   return 0;
 }