rust/src/test/run-pass/pub-extern-privacy.rs
Alex Crichton 30862a64c2 Fix run-pass tests to have 'pub fn main'
This is required by the check-fast target because each test is slurped up into a
submodule.
2013-09-25 00:43:37 -07:00

15 lines
194 B
Rust

use std::cast::transmute;
mod a {
extern {
pub fn free(x: *u8);
}
}
#[fixed_stack_segment] #[inline(never)]
pub fn main() {
unsafe {
a::free(transmute(0));
}
}