From a8bbca8da73288c230b02e23f8844502e700f844 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 27 May 2002 13:48:56 +0000 Subject: 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 --- tests/tswap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/tswap.c') diff --git a/tests/tswap.c b/tests/tswap.c index 417fe9f8f..80b75e251 100644 --- a/tests/tswap.c +++ b/tests/tswap.c @@ -23,12 +23,15 @@ MA 02111-1307, USA. */ #include #include "gmp.h" #include "mpfr.h" +#include "mpfr-test.h" int main (void) { mpfr_t u, v; + tests_start_mpfr (); + mpfr_init2 (u, 24); mpfr_init2 (v, 53); mpfr_set_ui (u, 16777215, GMP_RNDN); /* 2^24 - 1 */ @@ -42,5 +45,6 @@ main (void) mpfr_clear (u); mpfr_clear (v); + tests_end_mpfr (); return 0; } -- cgit v1.2.1