2013-05-31 13:31:38 -05:00
|
|
|
use std::cast::transmute;
|
|
|
|
|
|
|
|
mod a {
|
|
|
|
extern {
|
|
|
|
pub fn free(x: *u8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-14 20:41:40 -05:00
|
|
|
#[fixed_stack_segment] #[inline(never)]
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() {
|
2013-05-31 13:31:38 -05:00
|
|
|
unsafe {
|
|
|
|
a::free(transmute(0));
|
|
|
|
}
|
|
|
|
}
|