diff options
author | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-10-23 21:09:56 +0000 |
---|---|---|
committer | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-10-23 21:09:56 +0000 |
commit | 828ae33c78558da23f9f47ccb714314d46612b55 (patch) | |
tree | 1c0216f98919697369f0af3fa8245008d0b3a24e /tests | |
parent | cebe2307eb89031d5efa5ec867098b3da1ca68fe (diff) | |
download | mpc-828ae33c78558da23f9f47ccb714314d46612b55.tar.gz |
[tests/tgeneric.c] added test case which fails, found by automatic builds
on http://hydra.nixos.org/build/1469029/log/raw
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1100 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tgeneric.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c index e276038..36b19da 100644 --- a/tests/tgeneric.c +++ b/tests/tgeneric.c @@ -926,7 +926,7 @@ tgeneric (mpc_function function, mpfr_prec_t prec_min, mpc_init2 (z3, prec_max); mpc_init2 (z4, prec_max); mpc_init2 (zzzz, 4*prec_max); - special_cases = 8; + special_cases = 9; break; case CCCC: mpc_init2 (z2, prec_max); @@ -1035,6 +1035,13 @@ tgeneric (mpc_function function, mpfr_prec_t prec_min, case 8: mpfr_set_inf (MPC_IM (z2), +1); break; + case 9: /* bug found by the automatic builds on + http://hydra.nixos.org/build/1469029/log/raw */ + mpfr_set_ui (MPC_RE (z1), 0, GMP_RNDN); + mpfr_set_ui_2exp (MPC_IM (z1), 3, -2, GMP_RNDN); + mpfr_set_ui (MPC_RE (z2), 8, GMP_RNDN); + mpfr_set_ui (MPC_IM (z2), 0, GMP_RNDN); + break; } break; case CCCC: |