aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/071.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/071.sh b/tests/071.sh
new file mode 100644
index 0000000..203ac5e
--- /dev/null
+++ b/tests/071.sh
@@ -0,0 +1,18 @@
+set -e
+
+cat <<'EOF' > expected
+579
+975
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+#define foo 123 + 456
+#define bar() 321 + 654
+
+int printf();
+
+int main() {
+ printf("%d\n", foo);
+ printf("%d\n", bar());
+}
+EOF