summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2003-04-14 11:26:32 +0000
committerdas <das@FreeBSD.org>2003-04-14 11:26:32 +0000
commit2fd827a8bcc42c4a5089dd6bccd5eab204ba5caf (patch)
tree6b7e0746728367a456c3caf05f0fa70d698f539e /tools
parentc01851b648b124bfc6d97b44841f0f513d2352be (diff)
downloadFreeBSD-src-2fd827a8bcc42c4a5089dd6bccd5eab204ba5caf.zip
FreeBSD-src-2fd827a8bcc42c4a5089dd6bccd5eab204ba5caf.tar.gz
Add a test case for printf("%5.0f", 0.001).
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/libc/stdio/test-printfloat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/regression/lib/libc/stdio/test-printfloat.c b/tools/regression/lib/libc/stdio/test-printfloat.c
index 8c697dd..e12d3a6 100644
--- a/tools/regression/lib/libc/stdio/test-printfloat.c
+++ b/tools/regression/lib/libc/stdio/test-printfloat.c
@@ -93,6 +93,8 @@ main(int argc, char *argv[])
testfmt("0", "%G", 0.0);
testfmt(" 0", "%3.0Lg", 0.0L);
+ testfmt(" 0", "%5.0f", 0.001);
+
testfmt("1.0123e+00", "%.4e", 1.0123456789);
testfmt("1.0123", "%.4f", 1.0123456789);
testfmt("1.012", "%.4g", 1.0123456789);
OpenPOWER on IntegriCloud