aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/lib-box.rs
blob: e0e10f5a865e6792777fc5fd48da3d71601c3509 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use std;
import std::box;

fn main() {
    auto x = @3;
    auto y = @3;
    assert (box::ptr_eq[int](x, x));
    assert (box::ptr_eq[int](y, y));
    assert (!box::ptr_eq[int](x, y));
    assert (!box::ptr_eq[int](y, x));
}