aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/function-macro
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-01 13:27:13 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-01 13:27:13 +0100
commit2d0181e9e07236ea28fb638c4a9eafb5896635b6 (patch)
tree2cd560e7bd8fa5960a06e4fade81fd57b6dc581f /test-files/mds-kbdc/validate-tree/invalid/function-macro
parentm (diff)
downloadmds-2d0181e9e07236ea28fb638c4a9eafb5896635b6.tar.gz
mds-2d0181e9e07236ea28fb638c4a9eafb5896635b6.tar.bz2
mds-2d0181e9e07236ea28fb638c4a9eafb5896635b6.tar.xz
mds-kbdc: add some test cases + fix issued with inclusion
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--test-files/mds-kbdc/validate-tree/invalid/function-macro19
1 files changed, 19 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/validate-tree/invalid/function-macro b/test-files/mds-kbdc/validate-tree/invalid/function-macro
new file mode 100644
index 0000000..e8f48cd
--- /dev/null
+++ b/test-files/mds-kbdc/validate-tree/invalid/function-macro
@@ -0,0 +1,19 @@
+function f/0
+ macro m/0
+ end macro
+end function
+
+# (function (@ 1 0-8) ‘f/0’
+# (.inner
+# (macro (@ 2 2-7) ‘m/0’
+# (.inner nil)
+# )
+# )
+# )
+# :2:2–7: error: macro definition inside function definition
+# macro m/0
+# ^^^^^
+# :1:0–8: note: outer function definition defined here
+# function f/0
+# ^^^^^^^^
+