diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-07-02 11:55:25 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-07-02 11:55:25 +0000 |
commit | 1fe1c510f2448f184d2bf1787a565ba320e938bc (patch) | |
tree | ca22a867ea34b9fbe8b5586b68a64bb538a50b04 /tests/tnrandom.c | |
parent | 866eaef0055937e3f405446914476097459e4998 (diff) | |
download | mpfr-1fe1c510f2448f184d2bf1787a565ba320e938bc.tar.gz |
[tests/t[ne]random.c] Reverted the changes done in r9126,9127,9130
and added a proper comment.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9132 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tnrandom.c')
-rw-r--r-- | tests/tnrandom.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/tnrandom.c b/tests/tnrandom.c index 12922ce8c..92db54ce7 100644 --- a/tests/tnrandom.c +++ b/tests/tnrandom.c @@ -22,6 +22,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-test.h" +/* mpfr_nrandom is not defined with mini-gmp, see src/nrandom.c */ +#ifndef MPFR_USE_MINI_GMP + static void test_special (mpfr_prec_t p) { @@ -70,7 +73,7 @@ test_nrandom (long nbtests, mpfr_prec_t prec, mpfr_rnd_t rnd, } } -#if defined(HAVE_STDARG) && !defined(MPFR_USE_MINI_GMP) +#ifdef HAVE_STDARG if (verbose) { mpfr_init2 (av, prec); @@ -128,3 +131,13 @@ main (int argc, char *argv[]) tests_end_mpfr (); return 0; } + +#else + +int +main (void) +{ + return 77; +} + +#endif |