From c03e0c49cd3329e0bc3e111393956441aa5f8849 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 4 May 2025 20:32:14 +0900 Subject: char literal --- tests/032.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/032.sh (limited to 'tests/032.sh') 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 -- cgit v1.2.3-70-g09d2