summaryrefslogtreecommitdiff
path: root/tests/tadd_ui.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-05-27 13:48:56 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-05-27 13:48:56 +0000
commita8bbca8da73288c230b02e23f8844502e700f844 (patch)
tree121921db74799d1c64ac6832e018fbc6119f7eb8 /tests/tadd_ui.c
parent6cc9ba1510baa89ceb8a9590f03c916c9142ade2 (diff)
downloadmpfr-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/tadd_ui.c')
-rw-r--r--tests/tadd_ui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tadd_ui.c b/tests/tadd_ui.c
index a8f330845..befe38e49 100644
--- a/tests/tadd_ui.c
+++ b/tests/tadd_ui.c
@@ -78,7 +78,10 @@ special (void)
int
main (int argc, char *argv[])
{
+ tests_start_mpfr ();
+
#ifdef MPFR_HAVE_FESETROUND
+ {
double x; unsigned long y, N; int i,rnd_mode,rnd;
mpfr_test_init ();
@@ -95,6 +98,7 @@ main (int argc, char *argv[])
check(x, y, rnd);
}
}
+ }
#endif
special ();
check3 (-1.716113812768534e-140, 1271212614, GMP_RNDZ,
@@ -110,6 +114,7 @@ main (int argc, char *argv[])
check3 (DBL_NAN, 2394875, GMP_RNDN, DBL_NAN);
#endif
+ tests_end_mpfr ();
return 0;
}