aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/093.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/093.sh b/tests/093.sh
new file mode 100644
index 0000000..50e20fa
--- /dev/null
+++ b/tests/093.sh
@@ -0,0 +1,21 @@
+set -e
+
+cat <<'EOF' > expected
+42
+246
+221
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+#define A(x) x
+#define B(x) x+x
+#define C(x, y) x*y
+
+int main() {
+ printf("%d\n", A(42));
+ printf("%d\n", B(123));
+ printf("%d\n", C(13, 17));
+}
+EOF