shithub: mc

Download patch

ref: fb8f4a81096140b3c35e0932d20420708a7845ef
parent: 6e9c17391b5f1cc81904d622efccff55519be6d9
parent: 908381e1e3a25448886a65730c27802da6ab1111
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 23 18:35:40 EST 2016

Merge pull request #58 from andrewchambers/bounds

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