summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tacos.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/tacos.c b/tests/tacos.c
index f566de22d..2bbe6ebbb 100644
--- a/tests/tacos.c
+++ b/tests/tacos.c
@@ -32,6 +32,7 @@ static void
special (void)
{
mpfr_t x, y;
+ int inex1, inex2;
mpfr_init2 (x, 32);
mpfr_init2 (y, 32);
@@ -54,6 +55,16 @@ special (void)
mpfr_print_binary (y); printf ("\n");
exit (1);
}
+
+ mpfr_set_prec (x, 2);
+ mpfr_set_ui (x, 0, GMP_RNDN);
+ inex1 = mpfr_acos (x, x, GMP_RNDN); /* Pi/2 */
+ inex2 = mpfr_const_pi (x, GMP_RNDN);
+ if (inex1 != inex2)
+ {
+ printf ("Error in mpfr_acos (3) for prec=2\n");
+ exit (1);
+ }
mpfr_clear (y);
mpfr_clear (x);