extern-inline: port better to OS X 10.9
[gnulib.git] / tests / test-cbrtl.c
index 5f1f0ae..a19de43 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of cbrtl() function.
-   Copyright (C) 2010-2012 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 (cbrtl, long double, (long double));
 
+#include <float.h>
+
 #include "macros.h"
 
-volatile long double x;
-long double y;
+#define DOUBLE long double
+#define L_(literal) literal##L
+#define MANT_DIG DBL_MANT_DIG
+#define CBRT cbrtl
+#define RANDOM randoml
+#include "test-cbrt.h"
 
 int
 main ()
@@ -36,5 +42,7 @@ main ()
   y = cbrtl (x);
   ASSERT (y >= 0.8434326653L && y <= 0.8434326654L);
 
+  test_function ();
+
   return 0;
 }