mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
(special): Add test for large ndigit parameter.
This commit is contained in:
parent
05e99a0bd7
commit
04dd2ec0d3
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user