rust/src/test/run-pass/pub-extern-privacy.rs
2013-06-13 18:03:08 -04:00

14 lines
150 B
Rust

use std::cast::transmute;
mod a {
extern {
pub fn free(x: *u8);
}
}
fn main() {
unsafe {
a::free(transmute(0));
}
}