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