diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-31 02:43:02 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:06:18 +0900 |
| commit | 788cfd8bcc932e545db73da282c48a9bad8ca271 (patch) | |
| tree | b386b8a6f2f1dc7a6042c15f13b2d929635816e5 /tests | |
| parent | 8fba2c682d190236b0e4c82b71404e6cfb62d6d0 (diff) | |
| download | ducc-788cfd8bcc932e545db73da282c48a9bad8ca271.tar.gz ducc-788cfd8bcc932e545db73da282c48a9bad8ca271.tar.zst ducc-788cfd8bcc932e545db73da282c48a9bad8ca271.zip | |
feat: implement __FILE__ macro
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/073.sh | 20 |
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 |
