diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-31 01:57:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:04:46 +0900 |
| commit | 021b726b518a907ae023f40131d58964dbceea01 (patch) | |
| tree | fe3ab2918ffe1513a6fedb9f5ec36acee0095052 /tests | |
| parent | 3ae75a0dec8cfb66ee53cbfaa6598d7fbf2f14d8 (diff) | |
| download | ducc-021b726b518a907ae023f40131d58964dbceea01.tar.gz ducc-021b726b518a907ae023f40131d58964dbceea01.tar.zst ducc-021b726b518a907ae023f40131d58964dbceea01.zip | |
feat: support macros that are expanded to multiple tokens
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/071.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/071.sh b/tests/071.sh new file mode 100644 index 0000000..203ac5e --- /dev/null +++ b/tests/071.sh @@ -0,0 +1,18 @@ +set -e + +cat <<'EOF' > expected +579 +975 +EOF + +bash ../../test_diff.sh <<'EOF' +#define foo 123 + 456 +#define bar() 321 + 654 + +int printf(); + +int main() { + printf("%d\n", foo); + printf("%d\n", bar()); +} +EOF |
