From d184d2aa493b255aa3ff2a7a24cb89b4df993d1b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 13 Dec 2014 16:11:15 +0100 Subject: mds-kbdc: compile-layout: more test cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .../compile-layout/invalid/_include_function-redefine | 3 +++ .../compile-layout/invalid/_include_macro-redefine | 3 +++ .../invalid/_nested_calls_with_inclusion-error | 10 ++++++++++ .../compile-layout/invalid/include_function-redefine | 4 ++++ .../compile-layout/invalid/include_macro-redefine | 4 ++++ .../mds-kbdc/compile-layout/invalid/nested_calls-error | 17 +++++++++++++++++ .../invalid/nested_calls_with_inclusion-error | 9 +++++++++ 7 files changed, 50 insertions(+) create mode 100644 test-files/mds-kbdc/compile-layout/invalid/_include_function-redefine create mode 100644 test-files/mds-kbdc/compile-layout/invalid/_include_macro-redefine create mode 100644 test-files/mds-kbdc/compile-layout/invalid/_nested_calls_with_inclusion-error create mode 100644 test-files/mds-kbdc/compile-layout/invalid/include_function-redefine create mode 100644 test-files/mds-kbdc/compile-layout/invalid/include_macro-redefine create mode 100644 test-files/mds-kbdc/compile-layout/invalid/nested_calls-error create mode 100644 test-files/mds-kbdc/compile-layout/invalid/nested_calls_with_inclusion-error (limited to 'test-files/mds-kbdc/compile-layout') diff --git a/test-files/mds-kbdc/compile-layout/invalid/_include_function-redefine b/test-files/mds-kbdc/compile-layout/invalid/_include_function-redefine new file mode 100644 index 0000000..8147196 --- /dev/null +++ b/test-files/mds-kbdc/compile-layout/invalid/_include_function-redefine @@ -0,0 +1,3 @@ +function f/0 +end function + diff --git a/test-files/mds-kbdc/compile-layout/invalid/_include_macro-redefine b/test-files/mds-kbdc/compile-layout/invalid/_include_macro-redefine new file mode 100644 index 0000000..c0204b4 --- /dev/null +++ b/test-files/mds-kbdc/compile-layout/invalid/_include_macro-redefine @@ -0,0 +1,3 @@ +macro m/0 +end macro + diff --git a/test-files/mds-kbdc/compile-layout/invalid/_nested_calls_with_inclusion-error b/test-files/mds-kbdc/compile-layout/invalid/_nested_calls_with_inclusion-error new file mode 100644 index 0000000..f9f3f00 --- /dev/null +++ b/test-files/mds-kbdc/compile-layout/invalid/_nested_calls_with_inclusion-error @@ -0,0 +1,10 @@ +function f/0 + let \0 : 0 +end function +function g/0 + "\f()" +end function +function h/0 + "\g()" +end function + diff --git a/test-files/mds-kbdc/compile-layout/invalid/include_function-redefine b/test-files/mds-kbdc/compile-layout/invalid/include_function-redefine new file mode 100644 index 0000000..ce73458 --- /dev/null +++ b/test-files/mds-kbdc/compile-layout/invalid/include_function-redefine @@ -0,0 +1,4 @@ +include "_include_function-redefine" +function f/0 +end function + diff --git a/test-files/mds-kbdc/compile-layout/invalid/include_macro-redefine b/test-files/mds-kbdc/compile-layout/invalid/include_macro-redefine new file mode 100644 index 0000000..d6ba11f --- /dev/null +++ b/test-files/mds-kbdc/compile-layout/invalid/include_macro-redefine @@ -0,0 +1,4 @@ +include "_include_macro-redefine" +macro m/0 +end macro + diff --git a/test-files/mds-kbdc/compile-layout/invalid/nested_calls-error b/test-files/mds-kbdc/compile-layout/invalid/nested_calls-error new file mode 100644 index 0000000..1e0cd0d --- /dev/null +++ b/test-files/mds-kbdc/compile-layout/invalid/nested_calls-error @@ -0,0 +1,17 @@ +function f/0 + let \0 : 0 +end function +function g/0 + "\f()" +end function +function h/0 + "\g()" +end function +macro m/0 + "\h()" +end macro +macro n/0 + m() +end macro +n() + diff --git a/test-files/mds-kbdc/compile-layout/invalid/nested_calls_with_inclusion-error b/test-files/mds-kbdc/compile-layout/invalid/nested_calls_with_inclusion-error new file mode 100644 index 0000000..fd48b54 --- /dev/null +++ b/test-files/mds-kbdc/compile-layout/invalid/nested_calls_with_inclusion-error @@ -0,0 +1,9 @@ +include "_nested_calls_with_inclusion-error" +macro m/0 + "\h()" +end macro +macro n/0 + m() +end macro +n() + -- cgit v1.2.3-70-g09d2