2011-06-15 11:19:50 -07:00
|
|
|
|
2011-04-21 16:44:17 -07:00
|
|
|
use std;
|
2011-05-12 17:24:54 +02:00
|
|
|
import std::box;
|
2011-04-21 16:44:17 -07:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
auto x = @3;
|
|
|
|
auto y = @3;
|
2011-05-12 17:24:54 +02:00
|
|
|
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));
|
2011-06-15 11:19:50 -07:00
|
|
|
}
|