diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-13 15:31:00 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-13 15:31:52 -0800 |
commit | 7844db37f5b6dce1e7772f955ff606ef806ae032 (patch) | |
tree | e2806527be8e40b11ce83cb7de6e08915413f92c /tests | |
parent | cb0f677e53e556185951c84a472a340ab49d3dc3 (diff) |
handle precision -1 in printf .*
Diffstat (limited to 'tests')
-rw-r--r-- | tests/printf/output.txt | 1 | ||||
-rw-r--r-- | tests/printf/output_i64_1.txt | 1 | ||||
-rw-r--r-- | tests/printf/test.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/printf/output.txt b/tests/printf/output.txt index 0155f0da..a3baed28 100644 --- a/tests/printf/output.txt +++ b/tests/printf/output.txt @@ -8280,4 +8280,5 @@ ffffff8000000000 1 1 +1.234568E+04 no_new_line diff --git a/tests/printf/output_i64_1.txt b/tests/printf/output_i64_1.txt index e38fb78f..ea85d302 100644 --- a/tests/printf/output_i64_1.txt +++ b/tests/printf/output_i64_1.txt @@ -8280,4 +8280,5 @@ ffffff8000000000 1 1 +1.234568E+04 no_new_line diff --git a/tests/printf/test.c b/tests/printf/test.c index 1c8ad9f7..adeb69db 100644 --- a/tests/printf/test.c +++ b/tests/printf/test.c @@ -8285,6 +8285,7 @@ int main() { printf("%hx\n", -0xFFFF); printf("%x\n", -0xFFFFFFFF); printf("\n"); + printf("%*.*E\n", 10, -1, 12345.6789123); printf("no_new_line"); return 0; } |