From d2dc7b0816ae5901826fda33cfe19ef6f927560d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 May 2006 20:28:05 +0000 Subject: [BZ #2509] * stdio-common/vfprintf.c (process_arg): Fix reading of signed short and byte values from parameter list. * stdio-common/tst-printf.c (main): Add more tests. * stdio-common/tst-printf.sh: Adjust for tst-printf.c change. --- stdio-common/tst-printf.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stdio-common/tst-printf.sh') diff --git a/stdio-common/tst-printf.sh b/stdio-common/tst-printf.sh index 3655558d16..04d04b20b8 100644 --- a/stdio-common/tst-printf.sh +++ b/stdio-common/tst-printf.sh @@ -246,6 +246,12 @@ Test ok. sprintf (buf, "%07Lo", 040000000000ll) = 40000000000 printf ("%hhu", 257) = 1 printf ("%hu", 65537) = 1 +printf ("%hhi", 257) = 1 +printf ("%hi", 65537) = 1 +printf ("%1$hhu", 257) = 1 +printf ("%1$hu", 65537) = 1 +printf ("%1$hhi", 257) = 1 +printf ("%1$hi", 65537) = 1 --- Should be no further output. --- EOF cmp - ${common_objpfx}stdio-common/tst-printf.out > /dev/null 2>&1 || -- cgit v1.2.3