aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-13 16:11:15 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-13 16:15:46 +0100
commitd184d2aa493b255aa3ff2a7a24cb89b4df993d1b (patch)
treede95f1264afb5a427ca4a617f20b3524d8e66e3c /test
parentmds-kbdc: dump call-stack (diff)
downloadmds-d184d2aa493b255aa3ff2a7a24cb89b4df993d1b.tar.gz
mds-d184d2aa493b255aa3ff2a7a24cb89b4df993d1b.tar.bz2
mds-d184d2aa493b255aa3ff2a7a24cb89b4df993d1b.tar.xz
mds-kbdc: compile-layout: more test cases
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--test-files/mds-kbdc/compile-layout/invalid/_include_function-redefine3
-rw-r--r--test-files/mds-kbdc/compile-layout/invalid/_include_macro-redefine3
-rw-r--r--test-files/mds-kbdc/compile-layout/invalid/_nested_calls_with_inclusion-error10
-rw-r--r--test-files/mds-kbdc/compile-layout/invalid/include_function-redefine4
-rw-r--r--test-files/mds-kbdc/compile-layout/invalid/include_macro-redefine4
-rw-r--r--test-files/mds-kbdc/compile-layout/invalid/nested_calls-error17
-rw-r--r--test-files/mds-kbdc/compile-layout/invalid/nested_calls_with_inclusion-error9
7 files changed, 50 insertions, 0 deletions
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()
+