mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
[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.
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user