]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(special): Add test for large ndigit parameter.
authorUlrich Drepper <drepper@redhat.com>
Wed, 23 Jun 1999 12:41:25 +0000 (12:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 23 Jun 1999 12:41:25 +0000 (12:41 +0000)
misc/tst-efgcvt.c

index 780dd9a02d0b8065e5e490c7d17d76ce05b38b4e..cfbaa21cb108f94dddba674fbfd633ae7e49c45c 100644 (file)
@@ -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);
+
 }