From 1b92ad61f4fb47dc54c19e785e4660ea920ea0c3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 29 Jul 2025 20:59:30 +0900 Subject: fix: type string literals --- tests/069.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/069.sh (limited to 'tests/069.sh') diff --git a/tests/069.sh b/tests/069.sh new file mode 100644 index 0000000..2a43022 --- /dev/null +++ b/tests/069.sh @@ -0,0 +1,18 @@ +set -e + +cat <<'EOF' > expected +h +l +, +EOF + +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + char* h = " hello,world" + 1; + printf("%c\n", *h); + printf("%c\n", h[2]); + printf("%c\n", *(h + 5)); +} +EOF -- cgit v1.2.3-70-g09d2