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