Skip to content

Commit f0e1bb7

Browse files
committed
Change vec-ref-count to handle 1 or 2, so long as non-leaky and non-creeping. un-XFAIL.
1 parent c9e601b commit f0e1bb7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/run-pass/vec-ref-count.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// xfail-stage0
2-
31
use std;
42
import std._vec;
53

64
fn main() {
75
auto v = vec(1, 2, 3);
8-
check (_vec.refcount[int](v) == 1u);
9-
check (_vec.refcount[int](v) == 1u);
6+
log_err _vec.refcount[int](v);
7+
log_err _vec.refcount[int](v);
8+
log_err _vec.refcount[int](v);
9+
check (_vec.refcount[int](v) == 1u || _vec.refcount[int](v) == 2u);
10+
check (_vec.refcount[int](v) == 1u || _vec.refcount[int](v) == 2u);
1011
}
1112

0 commit comments

Comments
 (0)