aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/function-macro_call
diff options
context:
space:
mode:
Diffstat (limited to 'test-files/mds-kbdc/validate-tree/invalid/function-macro_call')
-rw-r--r--test-files/mds-kbdc/validate-tree/invalid/function-macro_call15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/validate-tree/invalid/function-macro_call b/test-files/mds-kbdc/validate-tree/invalid/function-macro_call
new file mode 100644
index 0000000..c1ade46
--- /dev/null
+++ b/test-files/mds-kbdc/validate-tree/invalid/function-macro_call
@@ -0,0 +1,15 @@
+function f/0
+ m()
+end function
+
+# (function (@ 1 0-8) ‘f/0’
+# (.inner
+# (macro_call (@ 2 2-3) ‘m’
+# (.arguments nil)
+# )
+# )
+# )
+# :2:2–3: error: macro call inside function definition
+# m()
+# ^
+