diff options
author | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2009-11-20 15:04:07 +0000 |
---|---|---|
committer | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2009-11-20 15:04:07 +0000 |
commit | c1bce31b9e8704cac4bc857ab13512f45c8e5bc8 (patch) | |
tree | e32ab54bf3efd790ad5534bacf7d57aa59c19ac0 /tests/tio_str.c | |
parent | ea0af5971c3e88793a5db1a4582d2059cabd2ec6 (diff) | |
download | mpc-c1bce31b9e8704cac4bc857ab13512f45c8e5bc8.tar.gz |
added mechanism (copied from GNU MPFR 2.4.1) to check memory
-> found one bug in atan (one variable was init two times)
and one problem in tio_str.c (some variables were init before test_start)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@724 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tio_str.c')
-rw-r--r-- | tests/tio_str.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c index 99eb989..e1a040f 100644 --- a/tests/tio_str.c +++ b/tests/tio_str.c @@ -213,13 +213,13 @@ main (void) mpc_t z, x; mp_prec_t prec; + test_start (); + mpc_init2 (z, 1000); mpc_init2 (x, 1000); check_file ("inp_str.dat"); - test_start(); - for (prec = 2; prec <= 1000; prec+=7) { mpc_set_prec (z, prec); @@ -249,7 +249,7 @@ main (void) mpc_clear (z); mpc_clear (x); - test_end(); + test_end (); return 0; } |