diff options
Diffstat (limited to 'tests/tadd1sp.c')
-rw-r--r-- | tests/tadd1sp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tadd1sp.c b/tests/tadd1sp.c index cf3beb8d5..5a81699a1 100644 --- a/tests/tadd1sp.c +++ b/tests/tadd1sp.c @@ -32,6 +32,10 @@ static void check_overflow (void) { mpfr_t x, y, z1, z2; + mp_exp_t emin, emax; + + emin = mpfr_get_emin (); + emax = mpfr_get_emax (); set_emin (-1021); set_emax (1024); @@ -48,6 +52,9 @@ check_overflow (void) exit (1); } mpfr_clears (x, y, z1, z2, (void *) 0); + + set_emin (emin); + set_emax (emax); } int main(void) |