summary refs log tree commit diff
path: root/src/test/run-pass/import-from-native.rs
blob: af19142682054a33669e17d9e2ce405a9e2e928a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod spam {
    fn ham() { }
    fn eggs() { }
}

#[abi = "cdecl"]
native mod rustrt {
    import spam::{ham, eggs};
    export ham;
    export eggs;
}

fn main() { rustrt::ham(); rustrt::eggs(); }