Skip to content

Commit

Permalink
Un-XFAIL mutable-alias-vec.rs. Was only failing due to a typo, but a …
Browse files Browse the repository at this point in the history
…more thorough test revealed more bugs.
  • Loading branch information
graydon committed Jul 5, 2010
1 parent f360d22 commit 3175c83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ TEST_XFAILS_X86 := $(MUT_BOX_XFAILS) \
test/run-pass/generic-fn-infer.rs \
test/run-pass/generic-fn-twice.rs \
test/run-pass/generic-recursive-tag.rs \
test/run-pass/mutable-alias-vec.rs \
test/run-pass/mutable-vec-drop.rs \
test/run-pass/bind-obj-ctor.rs \
test/run-pass/task-comm.rs \
Expand Down
14 changes: 12 additions & 2 deletions src/test/run-pass/mutable-alias-vec.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
// -*- rust -*-

fn grow(mutable &vec[int] v) {
use std;

fn grow(&mutable vec[int] v) {
v += vec(1);
}

fn main() {}
fn main() {
let vec[int] v = vec();
grow(v);
grow(v);
grow(v);
auto len = std._vec.len[int](v);
log len;
check (len == uint(3));
}

0 comments on commit 3175c83

Please sign in to comment.