From 788cfd8bcc932e545db73da282c48a9bad8ca271 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 31 Jul 2025 02:43:02 +0900 Subject: feat: implement __FILE__ macro --- tests/073.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/073.sh (limited to 'tests/073.sh') 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 -- cgit v1.2.3-70-g09d2