aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-31 00:26:21 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:04:44 +0900
commit2dcf1082a308bf27f11616c3e1bde4100d22e5c9 (patch)
tree681a0a17fe84fd62f98ebca29c9a094f3d5e56e8 /tests
parent2d5b6796c4fcc6a22b77a638e60ec9ea0ac58709 (diff)
downloadducc-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.sh15
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