rust/src/test/run-pass/import-from-foreign.rs

14 lines
197 B
Rust

mod spam {
fn ham() { }
fn eggs() { }
}
#[abi = "cdecl"]
extern mod rustrt {
import spam::{ham, eggs};
export ham;
export eggs;
}
fn main() { rustrt::ham(); rustrt::eggs(); }