diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-02 02:58:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:06:21 +0900 |
| commit | 386fef59fafbd1fd05e6907f100ba99cedf88822 (patch) | |
| tree | ba4a566a99859aeecd48fc6d7cd55a6821041195 /tests | |
| parent | 067365f74067bcd389e35123c0e3e259a8c61947 (diff) | |
| download | ducc-386fef59fafbd1fd05e6907f100ba99cedf88822.tar.gz ducc-386fef59fafbd1fd05e6907f100ba99cedf88822.tar.zst ducc-386fef59fafbd1fd05e6907f100ba99cedf88822.zip | |
feat: allow #define to omit destination tokens
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/079.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/079.sh b/tests/079.sh new file mode 100644 index 0000000..4381f45 --- /dev/null +++ b/tests/079.sh @@ -0,0 +1,27 @@ +set -e + +cat <<'EOF' > expected +42 +EOF + +cat <<'EOF' > header.h +#ifndef HEADER_H +#define HEADER_H + +int f() { return 42; } + +#endif +EOF + +bash ../../test_diff.sh <<'EOF' +#include "header.h" +#include "header.h" +#include "header.h" + +int printf(); + +int main() { + printf("%d\n", HEADER_H HEADER_H HEADER_H f() HEADER_H HEADER_H HEADER_H); + return 0; +} +EOF |
