diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-27 16:12:57 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-27 16:12:57 +0000 |
commit | 8341305ba4bb5839e101b02a5d4804b16a08ff7f (patch) | |
tree | 0f7cbb8d23e696119b378375fd8cb1b5f3260602 /tests/tadd1sp.c | |
parent | 05e4ca8ce019787085a2cb79c7d5b6d8478d3cf6 (diff) | |
download | mpfr-8341305ba4bb5839e101b02a5d4804b16a08ff7f.tar.gz |
tests: check the exponent range, in particular at the end of each test.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5136 280ebfd0-de03-0410-8827-d642c229c3f4
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) |