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