summaryrefslogtreecommitdiff
path: root/tests/tlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tlog.c')
-rw-r--r--tests/tlog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tlog.c b/tests/tlog.c
index d3f560d47..517c66c33 100644
--- a/tests/tlog.c
+++ b/tests/tlog.c
@@ -172,6 +172,11 @@ special (void)
mpfr_sqrt (x, x, GMP_RNDN);
mpfr_log (y, x, GMP_RNDN);
+ /* negative argument */
+ mpfr_set_si (x, -1, GMP_RNDN);
+ mpfr_log (y, x, GMP_RNDN);
+ MPFR_ASSERTN(mpfr_nan_p (y));
+
mpfr_clear (x);
mpfr_clear (y);
}