summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Chambers <andrewchamberss@gmail.com>2016-01-24 20:32:21 +1300
committerAndrew Chambers <andrewchamberss@gmail.com>2016-01-24 20:34:22 +1300
commit908381e1e3a25448886a65730c27802da6ab1111 (patch)
treef022d93041b2362673f1ce652ffd126ef8df7c41 /test
parent6e9c17391b5f1cc81904d622efccff55519be6d9 (diff)
downloadmc-908381e1e3a25448886a65730c27802da6ab1111.tar.gz
add test for missing bounds check
Diffstat (limited to 'test')
-rw-r--r--test/bounds.myr4
-rw-r--r--test/tests1
2 files changed, 5 insertions, 0 deletions
diff --git a/test/bounds.myr b/test/bounds.myr
new file mode 100644
index 0000000..039b051
--- /dev/null
+++ b/test/bounds.myr
@@ -0,0 +1,4 @@
+const main = {
+ var a : byte[:] = [1, 2, 3][:]
+ var b = a[:4]
+}
diff --git a/test/tests b/test/tests
index 28775e6..4f47773 100644
--- a/test/tests
+++ b/test/tests
@@ -150,3 +150,4 @@ F arityhigh
F badop
B voideffect P pass
B foroptexpr P pass
+B bounds E 134