Two more testcases for overwriting already-live box-like fields in structures, without leaking.

This commit is contained in:
Graydon Hoare 2010-07-23 12:22:31 -07:00
parent 6668595ebf
commit b5e46ac2a0
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,4 @@
fn main() {
let tup(mutable @int) i = tup(mutable @10);
i._0 = @11;
}

View file

@ -0,0 +1,4 @@
fn main() {
let tup(mutable vec[int]) i = tup(mutable vec(1,2,3));
i._0 = vec(4,5,6);
}