From 3b74a935d67c1fa0c446459db4458a0260add9d3 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Mon, 14 Apr 2003 11:26:32 +0000 Subject: [PATCH] Add a test case for printf("%5.0f", 0.001). --- tools/regression/lib/libc/stdio/test-printfloat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/regression/lib/libc/stdio/test-printfloat.c b/tools/regression/lib/libc/stdio/test-printfloat.c index 8c697dd3715b..e12d3a6e60b2 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);