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/mpc-tests.h | |
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/mpc-tests.h')
-rw-r--r-- | tests/mpc-tests.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mpc-tests.h b/tests/mpc-tests.h index d436df9..24eef36 100644 --- a/tests/mpc-tests.h +++ b/tests/mpc-tests.h @@ -185,6 +185,8 @@ void read_int (FILE *fp, int *n, const char *name); size_t read_string (FILE *fp, char **buffer_ptr, size_t buffer_length, const char *name); void read_mpfr (FILE *fp, mpfr_ptr x, int *known_sign); void read_mpc (FILE *fp, mpc_ptr z, known_signs_t *ks); +void tests_memory_start (void); +void tests_memory_end (void); #define TERNARY_NOT_CHECKED 255 /* special value to indicate that the ternary value is not checked */ |