aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/compile-layout/valid/function-value-if-value
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-09 17:02:21 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-09 17:02:21 +0100
commit437ee31fac70799f9fafc7864655283270d4fed8 (patch)
tree042a88cfe91b4c492aaedaf76945485acd434515 /test-files/mds-kbdc/compile-layout/valid/function-value-if-value
parentm (diff)
downloadmds-437ee31fac70799f9fafc7864655283270d4fed8.tar.gz
mds-437ee31fac70799f9fafc7864655283270d4fed8.tar.bz2
mds-437ee31fac70799f9fafc7864655283270d4fed8.tar.xz
mds-kbdc: m bug fixes + more test cases
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--test-files/mds-kbdc/compile-layout/valid/function-value-if-value8
-rw-r--r--test-files/mds-kbdc/compile-layout/valid/function-value-if-value-end-value11
2 files changed, 19 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/compile-layout/valid/function-value-if-value b/test-files/mds-kbdc/compile-layout/valid/function-value-if-value
new file mode 100644
index 0000000..a9f2394
--- /dev/null
+++ b/test-files/mds-kbdc/compile-layout/valid/function-value-if-value
@@ -0,0 +1,8 @@
+function f/0
+ "a"
+ if 1
+ "a"
+ end if
+end function
+<letter \f()> : ""
+
diff --git a/test-files/mds-kbdc/compile-layout/valid/function-value-if-value-end-value b/test-files/mds-kbdc/compile-layout/valid/function-value-if-value-end-value
new file mode 100644
index 0000000..3d8644a
--- /dev/null
+++ b/test-files/mds-kbdc/compile-layout/valid/function-value-if-value-end-value
@@ -0,0 +1,11 @@
+# It is acceptable not to find unneccessary statements
+
+function f/0
+ "a"
+ if 1
+ "a"
+ end if
+ "a"
+end function
+<letter \f()> : ""
+