aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/037.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/037.sh')
-rw-r--r--tests/037.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/037.sh b/tests/037.sh
new file mode 100644
index 0000000..bc6867b
--- /dev/null
+++ b/tests/037.sh
@@ -0,0 +1,18 @@
+set -e
+
+cat <<'EOF' > expected
+hi
+EOF
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+void f() {
+ printf("hi\n");
+ return;
+}
+
+int main() {
+ f();
+ return 0;
+}
+EOF