rust/tests/run-make/wasm-import-module/bar.rs
2023-01-11 09:32:08 +00:00

19 lines
258 B
Rust

#![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();
}
}