diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-05-04 14:23:46 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2012-05-04 14:23:46 +0000 |
commit | c25b1f26f80a7f9c4063de69d82a3e56c90a9a13 (patch) | |
tree | 67c8eba7f5952de18211154ad12e3d6448d08d5f /tests/tgamma.c | |
parent | e176f80639c4e322161974cae27a92d3f6a2c934 (diff) | |
download | mpfr-c25b1f26f80a7f9c4063de69d82a3e56c90a9a13.tar.gz |
[tests/tgamma.c] Added a test showing a failure on 64-bit machines
due to an unset overflow flag.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8192 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tgamma.c')
-rw-r--r-- | tests/tgamma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tgamma.c b/tests/tgamma.c index 826dd0dd9..a99dea3ca 100644 --- a/tests/tgamma.c +++ b/tests/tgamma.c @@ -998,6 +998,10 @@ exp_lgamma_tests (void) exp_lgamma (x, 53, 64); mpfr_set_str (x, "-1.2b13fc45a92dea8@14", 16, MPFR_RNDN); exp_lgamma (x, 53, 64); + /* The following test is an overflow on 32-bit and 64-bit machines. + Revision r8189 fails on 64-bit machines as the flag is unset. */ + mpfr_set_str (x, "1.2b13fc45a92ded8@14", 16, MPFR_RNDN); + exp_lgamma (x, 53, 64); mpfr_clear (x); set_emin (emin); |