about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-02-29 20:49:20 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-02-29 20:49:20 +0000
commit0fcad3e243575f5b316a1b630fcd9ed2396fd0c8 (patch)
tree76c997b4463cab8e5cf3eba38ea18e036ebe4219 /math
parent5b8a4d4a09379dad120e2209730a628ad038e1bf (diff)
downloadglibc-0fcad3e243575f5b316a1b630fcd9ed2396fd0c8.tar.gz
glibc-0fcad3e243575f5b316a1b630fcd9ed2396fd0c8.tar.xz
glibc-0fcad3e243575f5b316a1b630fcd9ed2396fd0c8.zip
Add test for bug 5794 (incorrect expm1 overflow).
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 54d1aca7d5..3510b61303 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2602,6 +2602,10 @@ expm1_test (void)
   TEST_f_f (expm1, 1, M_El - 1.0);
   TEST_f_f (expm1, 0.75L, 1.11700001661267466854536981983709561L);
 
+#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384
+  TEST_f_f (expm1, 11356.25L, 9.05128237311923300051376115753226014206e+4931L);
+#endif
+
   errno = 0;
   TEST_f_f (expm1, 100000.0, plus_infty);
   check_int ("errno for expm1(large) == ERANGE", errno, ERANGE, 0, 0, 0);