summary refs log tree commit diff
path: root/misc/tst-efgcvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tst-efgcvt.c')
-rw-r--r--misc/tst-efgcvt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/tst-efgcvt.c b/misc/tst-efgcvt.c
index 780dd9a02d..cfbaa21cb1 100644
--- a/misc/tst-efgcvt.c
+++ b/misc/tst-efgcvt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -131,6 +131,10 @@ special (void)
   if (sign != 0 || strcmp (p, "inf") != 0)
     output_error ("ecvt", NAN, 10, "inf", 0, 0, p, decpt, sign);
 
+  /* Simply make sure these calls with large NDIGITs don't crash.  */
+  (void) ecvt (123.456, 10000, &decpt, &sign);
+  (void) fcvt (123.456, 10000, &decpt, &sign);
+
 }