Skip to content

Commit ffbbf42

Browse files
committed
test: Add a test for vector reference counts, XFAIL'd in rustc
1 parent bfa3c05 commit ffbbf42

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// xfail-stage0
2+
3+
use std;
4+
import std._vec;
5+
6+
fn main() {
7+
auto v = vec(1, 2, 3);
8+
check (_vec.refcount[int](v) == 1u);
9+
check (_vec.refcount[int](v) == 1u);
10+
}
11+

0 commit comments

Comments
 (0)