strtoumax: fix typo in previous commit.
[gnulib.git] / tests / test-logf.c
index 2ff5076..40ff2c1 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of logf() 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 (logf, float, (float));
 
+#include <float.h>
+
+#include "minus-zero.h"
 #include "macros.h"
 
-volatile float x;
-float y;
+#define DOUBLE float
+#define HUGEVAL HUGE_VALF
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define MINUS_ZERO minus_zerof
+#define LOG logf
+#define RANDOM randomf
+#include "test-log.h"
 
 int
 main ()
@@ -36,5 +45,7 @@ main ()
   y = logf (x);
   ASSERT (y >= -0.5108257f && y <= -0.5108256f);
 
+  test_function ();
+
   return 0;
 }