diff options
Diffstat (limited to 'tests/texceptions.c')
-rw-r--r-- | tests/texceptions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/texceptions.c b/tests/texceptions.c index 94a15bef4..48f4bbe0f 100644 --- a/tests/texceptions.c +++ b/tests/texceptions.c @@ -103,10 +103,13 @@ static void check_get_prec (void) { mpfr_t x; + int i = 0; mpfr_init2 (x, 17); - if (mpfr_get_prec (x) != 17 || (mpfr_get_prec)(x) != 17) + if (mpfr_get_prec (x) != 17 || (mpfr_get_prec) (x) != 17 || + mpfr_get_prec ((i++, (void *) x)) != 17) PRINT_ERROR ("mpfr_get_prec"); + MPFR_ASSERTN (i == 1); mpfr_clear (x); } |