From 2dcf1082a308bf27f11616c3e1bde4100d22e5c9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 31 Jul 2025 00:26:21 +0900 Subject: feat: implement function-like macro without parameters --- tests/070.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/070.sh (limited to 'tests') 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 -- cgit v1.2.3-70-g09d2