diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-08-27 09:38:52 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-08-27 09:38:52 +0000 |
commit | ffb8da440df012d8dcf682bb243be8b581126b11 (patch) | |
tree | 846e1b6acbcdd75fd275db5fc6bed79ab3304ff4 /tests/tbuildopt.c | |
parent | c5b0aed4b50fed5aa2402348492e9b47d72c5ab6 (diff) | |
download | mpfr-ffb8da440df012d8dcf682bb243be8b581126b11.tar.gz |
[tests/tbuildopt.c] added check of mpfr_buildopt_sharedcache_p()
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13030 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tbuildopt.c')
-rw-r--r-- | tests/tbuildopt.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/tbuildopt.c b/tests/tbuildopt.c index 5ae06afdd..422c3c5f3 100644 --- a/tests/tbuildopt.c +++ b/tests/tbuildopt.c @@ -95,6 +95,24 @@ check_gmpinternals_p (void) #endif } +static void +check_sharedcache_p (void) +{ +#if defined(MPFR_WANT_SHARED_CACHE) + if (!mpfr_buildopt_sharedcache_p ()) + { + printf ("Error: mpfr_buildopt_sharedcache_p should return true\n"); + exit (1); + } +#else + if (mpfr_buildopt_sharedcache_p ()) + { + printf ("Error: mpfr_buildopt_sharedcache_p should return false\n"); + exit (1); + } +#endif +} + int main (void) { @@ -104,6 +122,7 @@ main (void) check_decimal_p(); check_float128_p(); check_gmpinternals_p(); + check_sharedcache_p (); { const char *s = mpfr_buildopt_tune_case (); (void) strlen (s); |