diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-29 21:46:50 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-29 21:46:50 +0000 |
commit | 9eed952acac7ece2d4069c5fd32295e20925d293 (patch) | |
tree | 0acfda563328ef47cb9cf48c0cdedf244af6ffd2 /tests/td_div.c | |
parent | 945f57fbf5b230095aecc9c8354a23514242a964 (diff) | |
download | mpfr-9eed952acac7ece2d4069c5fd32295e20925d293.tar.gz |
Added #if MPFR_VERSION >= MPFR_VERSION_NUM(2,4,0) conditionals to be
able to test MPFR 2.3.* with the (more complete) tests from the trunk.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5144 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/td_div.c')
-rw-r--r-- | tests/td_div.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/td_div.c b/tests/td_div.c index 74c3ee72b..29e52486e 100644 --- a/tests/td_div.c +++ b/tests/td_div.c @@ -26,6 +26,8 @@ MA 02110-1301, USA. */ #include "mpfr-test.h" +#if MPFR_VERSION >= MPFR_VERSION_NUM(2,4,0) + static void check_nans (void) { @@ -110,3 +112,14 @@ main (int argc, char *argv[]) tests_end_mpfr (); return 0; } + +#else + +int +main (void) +{ + printf ("Warning! Test disabled for this MPFR version.\n"); + return 0; +} + +#endif |