diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/printf/output.txt | 2 | ||||
-rw-r--r-- | tests/printf/test.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/printf/output.txt b/tests/printf/output.txt index bdf9d0bc..be93561b 100644 --- a/tests/printf/output.txt +++ b/tests/printf/output.txt @@ -1,3 +1,5 @@ +ab1.23cd +n=7 Characters: a A Decimals: 1977 650000 12 4 diff --git a/tests/printf/test.c b/tests/printf/test.c index ac662dca..e388ee9c 100644 --- a/tests/printf/test.c +++ b/tests/printf/test.c @@ -2,6 +2,9 @@ #include <math.h> int main() { + int x; + printf("ab%gc%nd\n", 1.23f, &x); + printf("n=%d\n", x); printf("\n"); printf("Characters: %c %c\n", 'a', 65); printf("Decimals: %d %ld %lld %d\n", 1977, 650000L, 12LL, 4); |