diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-31 00:26:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:04:44 +0900 |
| commit | 2dcf1082a308bf27f11616c3e1bde4100d22e5c9 (patch) | |
| tree | 681a0a17fe84fd62f98ebca29c9a094f3d5e56e8 /tests | |
| parent | 2d5b6796c4fcc6a22b77a638e60ec9ea0ac58709 (diff) | |
| download | ducc-2dcf1082a308bf27f11616c3e1bde4100d22e5c9.tar.gz ducc-2dcf1082a308bf27f11616c3e1bde4100d22e5c9.tar.zst ducc-2dcf1082a308bf27f11616c3e1bde4100d22e5c9.zip | |
feat: implement function-like macro without parameters
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/070.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/070.sh b/tests/070.sh new file mode 100644 index 0000000..9a15499 --- /dev/null +++ b/tests/070.sh @@ -0,0 +1,15 @@ +set -e + +cat <<'EOF' > expected +123 +EOF + +bash ../../test_diff.sh <<'EOF' +#define foo() 123 + +int printf(); + +int main() { + printf("%d\n", foo()); +} +EOF |
