about summary refs log tree commit diff
path: root/src/test/stdtest/box.rs
blob: 6212ec63965c9588a16bf1f339e11904e166e09f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

use std;
import std::box;

#[test]
fn test() {
    let x = @3;
    let 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));
}