aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/086.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/086.sh')
-rw-r--r--tests/086.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/086.sh b/tests/086.sh
new file mode 100644
index 0000000..ee440b5
--- /dev/null
+++ b/tests/086.sh
@@ -0,0 +1,17 @@
+set -e
+
+cat <<'EOF' > expected
+105
+0
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+int main() {
+ char* s = "hi";
+ while (*s++) {
+ printf("%d\n", *s);
+ }
+}
+EOF