2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2012-09-05 14:32:05 -05:00
|
|
|
use std::arena;
|
2012-03-21 07:45:52 -05:00
|
|
|
|
|
|
|
fn main() {
|
2012-08-11 09:08:42 -05:00
|
|
|
let p = &arena::Arena();
|
2012-08-02 18:00:45 -05:00
|
|
|
let x = p.alloc(|| 4u);
|
2012-08-22 19:24:52 -05:00
|
|
|
io::print(fmt!("%u", *x));
|
2012-03-21 07:45:52 -05:00
|
|
|
assert *x == 4u;
|
|
|
|
}
|