ref: 908381e1e3a25448886a65730c27802da6ab1111
parent: 6e9c17391b5f1cc81904d622efccff55519be6d9
author: Andrew Chambers <andrewchamberss@gmail.com>
date: Sun Jan 24 15:32:21 EST 2016
add test for missing bounds check
--- /dev/null
+++ b/test/bounds.myr
@@ -1,0 +1,4 @@
+const main = {
+ var a : byte[:] = [1, 2, 3][:]
+ var b = a[:4]
+}
--- a/test/tests
+++ b/test/tests
@@ -150,3 +150,4 @@
F badop
B voideffect P pass
B foroptexpr P pass
+B bounds E 134