Add a test for that last bug. Oops.

This commit is contained in:
Michael Sullivan 2012-05-30 17:12:50 -07:00
parent ea8d4d7f17
commit e5757923cd

View File

@ -0,0 +1,6 @@
fn main() {
let v = vec::from_fn(1024u) {|n| n};
// this should trip a bounds check
log(error, v[-1i8]);
}