aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/060.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/060.sh b/tests/060.sh
new file mode 100644
index 0000000..03d65b7
--- /dev/null
+++ b/tests/060.sh
@@ -0,0 +1,20 @@
+set -e
+
+cat <<'EOF' > expected
+42
+EOF
+
+cat <<'EOF' > header.h
+#define A 42
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+#include "header.h"
+
+int printf();
+
+int main() {
+ printf("%d\n", A);
+ return 0;
+}
+EOF