Modify testcase to match new syntax and un-XFAIL mutable-vec-drop.rs.

This commit is contained in:
Graydon Hoare 2010-07-23 12:32:12 -07:00
parent b5e46ac2a0
commit fe82978980
2 changed files with 4 additions and 2 deletions

View File

@ -360,7 +360,6 @@ TEST_XFAILS_X86 := test/run-pass/bind-obj-ctor.rs \
test/run-pass/generic-recursive-tag.rs \
test/run-pass/iter-ret.rs \
test/run-pass/mlist-cycle.rs \
test/run-pass/mutable-vec-drop.rs \
test/run-pass/obj-as.rs \
test/run-pass/task-comm.rs \
test/run-pass/vec-slice.rs \

View File

@ -1,4 +1,7 @@
fn main() {
// This just tests whether the vec leaks its members.
let vec[mutable @tup(int,int)] pvec = vec(tup(1,2),tup(3,4),tup(5,6));
let vec[mutable @tup(int,int)] pvec =
// FIXME: vec constructor syntax is slated to change.
vec[mutable](@tup(1,2), @tup(3,4), @tup(5,6));
}