Add test for negative pad stupport in printf
This commit is contained in:
@@ -45,6 +45,7 @@ EXPECT_NAMES=\
|
||||
stdio/ungetc_multiple \
|
||||
stdio/ungetc_ftell \
|
||||
stdio/fscanf_offby1 \
|
||||
stdio/printf_neg_pad \
|
||||
stdlib/a64l \
|
||||
stdlib/alloc \
|
||||
stdlib/atof \
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
A BCC/
|
||||
AB CC/
|
||||
@@ -0,0 +1,5 @@
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
printf ("A%*s%s/\n", 5, "B", "CC");
|
||||
printf ("A%*s%s/\n", -5, "B", "CC");
|
||||
}
|
||||
Reference in New Issue
Block a user