aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/lib-box.rs
blob: 6e0f35bcac308f635820f90715b02cf79da1690a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// xfail-stage0

use std;
import std.Box;

fn main() {
    auto x = @3;
    auto y = @3;
    check (Box.ptr_eq[int](x, x));
    check (Box.ptr_eq[int](y, y));
    check (!Box.ptr_eq[int](x, y));
    check (!Box.ptr_eq[int](y, x));
}