From 968cda7acdce7fba09c8623182480f5859b0ef1e Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 20 Jul 2015 21:49:28 +0000 Subject: [tests/tversion.c] Check and output additional mpfr_buildopt_* info. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9630 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tversion.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/tests/tversion.c b/tests/tversion.c index 58477cc18..d64dfb72f 100644 --- a/tests/tversion.c +++ b/tests/tversion.c @@ -45,6 +45,44 @@ main (void) gmp_version); #endif + if ( +#ifdef MPFR_USE_THREAD_SAFE + ! +#endif + mpfr_buildopt_tls_p ()) + { + printf ("ERROR! mpfr_buildopt_tls_p() and macros" + " do not match!\n"); + err = 1; + } + + if ( +#ifdef MPFR_WANT_DECIMAL_FLOATS + ! +#endif + mpfr_buildopt_decimal_p ()) + { + printf ("ERROR! mpfr_buildopt_decimal_p() and macros" + " do not match!\n"); + err = 1; + } + + if ( +#if defined(MPFR_HAVE_GMP_IMPL) || defined(WANT_GMP_INTERNALS) + ! +#endif + mpfr_buildopt_gmpinternals_p ()) + { + printf ("ERROR! mpfr_buildopt_gmpinternals_p() and macros" + " do not match!\n"); + err = 1; + } + + printf ("[tversion] TLS = %s, decimal = %s, GMP internals = %s\n", + mpfr_buildopt_tls_p () ? "yes" : "no", + mpfr_buildopt_decimal_p () ? "yes" : "no", + mpfr_buildopt_gmpinternals_p () ? "yes" : "no"); + if (strcmp (mpfr_buildopt_tune_case (), MPFR_TUNE_CASE) != 0) { printf ("ERROR! mpfr_buildopt_tune_case() and MPFR_TUNE_CASE" -- cgit v1.2.1