From 2d0181e9e07236ea28fb638c4a9eafb5896635b6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 1 Dec 2014 13:27:13 +0100 Subject: mds-kbdc: add some test cases + fix issued with inclusion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .../mds-kbdc/validate-tree/invalid/function-function | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test-files/mds-kbdc/validate-tree/invalid/function-function (limited to 'test-files/mds-kbdc/validate-tree/invalid/function-function') diff --git a/test-files/mds-kbdc/validate-tree/invalid/function-function b/test-files/mds-kbdc/validate-tree/invalid/function-function new file mode 100644 index 0000000..4793bbc --- /dev/null +++ b/test-files/mds-kbdc/validate-tree/invalid/function-function @@ -0,0 +1,19 @@ +function f/0 + function g/0 + end function +end function + +# (function (@ 1 0-8) ‘f/0’ +# (.inner +# (function (@ 2 2-10) ‘g/0’ +# (.inner nil) +# ) +# ) +# ) +# :2:2–10: error: nested function definition +# function g/0 +# ^^^^^^^^ +# :1:0–8: note: outer function defined here +# function f/0 +# ^^^^^^^^ + -- cgit v1.2.3-70-g09d2