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