diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-05-27 13:48:56 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-05-27 13:48:56 +0000 |
commit | a8bbca8da73288c230b02e23f8844502e700f844 (patch) | |
tree | 121921db74799d1c64ac6832e018fbc6119f7eb8 /tests/tset_q.c | |
parent | 6cc9ba1510baa89ceb8a9590f03c916c9142ade2 (diff) | |
download | mpfr-a8bbca8da73288c230b02e23f8844502e700f844.tar.gz |
Patch by Kevin Ryde for memory leak checking + misc declaration fixes.
Code moved from mpfr-test.h to tests.c.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1932 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_q.c')
-rw-r--r-- | tests/tset_q.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tset_q.c b/tests/tset_q.c index bb9ffc37e..8a1f2e066 100644 --- a/tests/tset_q.c +++ b/tests/tset_q.c @@ -80,7 +80,10 @@ check (long int n, long int d, mp_rnd_t rnd, double y) int main (void) { + tests_start_mpfr (); + #ifdef MPFR_HAVE_FESETROUND + { long int i, n; unsigned long int d; double y; @@ -97,6 +100,7 @@ main (void) y = (double) n / d; check(n, d, rnd, y); } + } #endif check(-1647229822, 40619231, GMP_RNDZ, -4.055295438754120596e1); check(-148939696, 1673285490, GMP_RNDZ, -8.9010331404953485501e-2); @@ -107,5 +111,6 @@ main (void) check(643562308, 23100894, GMP_RNDD, 2.7858762002890447462e1); check(632549085, 1831935802, GMP_RNDN, 3.4528998467600230393e-1); + tests_end_mpfr (); return 0; } |