summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/wasm-import-module/bar.rs
blob: 1b988c78321d94af4c9a4c51fa96978279a91041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![crate_type = "cdylib"]
#![deny(warnings)]

extern crate foo;

#[link(wasm_import_module = "./me")]
extern "C" {
    #[link_name = "me_in_dep"]
    fn dep();
}

#[no_mangle]
pub extern "C" fn foo() {
    unsafe {
        foo::dep();
        dep();
    }
}