From 8259385347f8d28f43f7e0d43debb4fdb60c7a1f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 22 Mar 2007 02:02:42 +0000 Subject: [PATCH] Split test-isnanl.c into test-isnanl-nolibm.c and test-isnanl.h. --- tests/test-isnanl-nolibm.c | 36 ++++++++++++++++++++++++++++++++++ tests/{test-isnanl.c => test-isnanl.h} | 16 --------------- 2 files changed, 36 insertions(+), 16 deletions(-) create mode 100644 tests/test-isnanl-nolibm.c rename tests/{test-isnanl.c => test-isnanl.h} (95%) diff --git a/tests/test-isnanl-nolibm.c b/tests/test-isnanl-nolibm.c new file mode 100644 index 000000000..8402a549f --- /dev/null +++ b/tests/test-isnanl-nolibm.c @@ -0,0 +1,36 @@ +/* Test of isnanl() substitute. + Copyright (C) 2007 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 2, 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, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#if HAVE_LONG_DOUBLE + +#include "isnanl-nolibm.h" + +#include "test-isnanl.h" + +#else + +int +main () +{ + return 0; +} + +#endif diff --git a/tests/test-isnanl.c b/tests/test-isnanl.h similarity index 95% rename from tests/test-isnanl.c rename to tests/test-isnanl.h index 534f15b17..0dab89908 100644 --- a/tests/test-isnanl.c +++ b/tests/test-isnanl.h @@ -17,12 +17,6 @@ /* Written by Bruno Haible , 2007. */ -#include - -#if HAVE_LONG_DOUBLE - -#include "isnanl.h" - #include #include @@ -65,13 +59,3 @@ main () #endif return 0; } - -#else - -int -main () -{ - return 0; -} - -#endif -- 2.11.0