diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-04 20:32:14 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-04 20:32:14 +0900 |
| commit | c03e0c49cd3329e0bc3e111393956441aa5f8849 (patch) | |
| tree | 2494330b5b333a0f2a99b228d8dd7f7bf49b48c3 /tests/032.sh | |
| parent | ba4e8695a1b99c8fe1f165d2978a7da168007fbd (diff) | |
| download | P4Dcc-c03e0c49cd3329e0bc3e111393956441aa5f8849.tar.gz P4Dcc-c03e0c49cd3329e0bc3e111393956441aa5f8849.tar.zst P4Dcc-c03e0c49cd3329e0bc3e111393956441aa5f8849.zip | |
char literal
Diffstat (limited to 'tests/032.sh')
| -rw-r--r-- | tests/032.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/032.sh b/tests/032.sh new file mode 100644 index 0000000..5e55b2a --- /dev/null +++ b/tests/032.sh @@ -0,0 +1,17 @@ +set -e + +cat <<'EOF' > expected +97 48 +92 39 +10 +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + printf("%d %d\n", 'a', '0'); + printf("%d %d\n", '\\', '\''); + printf("%d\n", '\n'); + return 0; +} +EOF |
