summaryrefslogtreecommitdiff
path: root/tests/treal.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/treal.c')
-rw-r--r--tests/treal.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/treal.c b/tests/treal.c
index c3ab95f..9b13e78 100644
--- a/tests/treal.c
+++ b/tests/treal.c
@@ -1,6 +1,6 @@
/* treal -- test file for mpc_real.
-Copyright (C) 2008 INRIA
+Copyright (C) 2008, 2013 INRIA
This file is part of GNU MPC.
@@ -20,14 +20,17 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
#include "mpc-tests.h"
+#define MPC_FUNCTION_CALL \
+ P[0].mpfr_inex = mpc_imag (P[1].mpfr, P[2].mpc, P[3].mpfr_rnd)
+
+#include "tgeneric.tpl"
+
int
main (void)
{
- DECL_FUNC (FC, f, mpc_real);
-
test_start ();
- tgeneric (f, 2, 1024, 1, 4096);
+ tgeneric_template ("real.dsc", 2, 1024, 1, 4096);
test_end ();