Skip to content

Commit 3175c83

Browse files
committed
Un-XFAIL mutable-alias-vec.rs. Was only failing due to a typo, but a more thorough test revealed more bugs.
1 parent f360d22 commit 3175c83

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ TEST_XFAILS_X86 := $(MUT_BOX_XFAILS) \
345345
test/run-pass/generic-fn-infer.rs \
346346
test/run-pass/generic-fn-twice.rs \
347347
test/run-pass/generic-recursive-tag.rs \
348-
test/run-pass/mutable-alias-vec.rs \
349348
test/run-pass/mutable-vec-drop.rs \
350349
test/run-pass/bind-obj-ctor.rs \
351350
test/run-pass/task-comm.rs \
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
// -*- rust -*-
22

3-
fn grow(mutable &vec[int] v) {
3+
use std;
4+
5+
fn grow(&mutable vec[int] v) {
46
v += vec(1);
57
}
68

7-
fn main() {}
9+
fn main() {
10+
let vec[int] v = vec();
11+
grow(v);
12+
grow(v);
13+
grow(v);
14+
auto len = std._vec.len[int](v);
15+
log len;
16+
check (len == uint(3));
17+
}

0 commit comments

Comments
 (0)