summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-04-01 17:00:56 +0200
committerBruno Haible <bruno@clisp.org>2012-04-01 17:00:56 +0200
commit8809bab2c5b28a6a735e0caff85cb883cd1e0ca7 (patch)
tree42ed8b709da47137d30fe7d076f823eaed678456 /tests
parent8068c984a78de11c6f8e5bfe63a1d7f430e1dae6 (diff)
downloadgnulib-8809bab2c5b28a6a735e0caff85cb883cd1e0ca7.tar.gz
Tests for module 'log10l-ieee'.
* modules/log10l-ieee-tests: New file. * tests/test-log10l-ieee.c: New file.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-log10l-ieee.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/test-log10l-ieee.c b/tests/test-log10l-ieee.c
new file mode 100644
index 0000000000..20220078d9
--- /dev/null
+++ b/tests/test-log10l-ieee.c
@@ -0,0 +1,45 @@
+/* Test of log10l() function.
+ Copyright (C) 2012 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
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+#include <math.h>
+
+#include "isnanl-nolibm.h"
+#include "minus-zero.h"
+#include "infinity.h"
+#include "nan.h"
+#include "macros.h"
+
+#undef INFINITY
+#undef NAN
+
+#define DOUBLE long double
+#define ISNAN isnanl
+#define INFINITY Infinityl ()
+#define NAN NaNl ()
+#define L_(literal) literal##L
+#define MINUS_ZERO minus_zerol
+#define LOG10 log10l
+#include "test-log10-ieee.h"
+
+int
+main ()
+{
+ test_function ();
+
+ return 0;
+}