aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-29 20:59:30 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:04:41 +0900
commit1b92ad61f4fb47dc54c19e785e4660ea920ea0c3 (patch)
treeb1321f985d94d5cb7d30a77d63e725df6c9612f9 /tests
parent3df0d758471d7654d4b85ef15a1675b4d62e7c41 (diff)
downloadducc-1b92ad61f4fb47dc54c19e785e4660ea920ea0c3.tar.gz
ducc-1b92ad61f4fb47dc54c19e785e4660ea920ea0c3.tar.zst
ducc-1b92ad61f4fb47dc54c19e785e4660ea920ea0c3.zip
fix: type string literals
Diffstat (limited to 'tests')
-rw-r--r--tests/069.sh18
1 files changed, 18 insertions, 0 deletions
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