rust/src/test/run-pass/pub-extern-privacy.rs

14 lines
150 B
Rust
Raw Normal View History

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