aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/vec-ref-count.rs
blob: 788489362fdc7e8d9fea93c5d89856009960edd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use std;
import std._vec;

fn main() {
    auto v = vec(1, 2, 3);
    log_err _vec.refcount[int](v);
    log_err _vec.refcount[int](v);
    log_err _vec.refcount[int](v);
    check (_vec.refcount[int](v) == 1u || _vec.refcount[int](v) == 2u);
    check (_vec.refcount[int](v) == 1u || _vec.refcount[int](v) == 2u);
}