diff options
author | Andrew Chambers <andrewchamberss@gmail.com> | 2016-01-24 20:32:21 +1300 |
---|---|---|
committer | Andrew Chambers <andrewchamberss@gmail.com> | 2016-01-24 20:34:22 +1300 |
commit | 908381e1e3a25448886a65730c27802da6ab1111 (patch) | |
tree | f022d93041b2362673f1ce652ffd126ef8df7c41 | |
parent | 6e9c17391b5f1cc81904d622efccff55519be6d9 (diff) | |
download | mc-908381e1e3a25448886a65730c27802da6ab1111.tar.gz |
add test for missing bounds check
-rw-r--r-- | test/bounds.myr | 4 | ||||
-rw-r--r-- | test/tests | 1 |
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] +} @@ -150,3 +150,4 @@ F arityhigh F badop B voideffect P pass B foroptexpr P pass +B bounds E 134 |