aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/069.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/069.sh')
-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