mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
19 lines
258 B
Rust
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();
|
|
}
|
|
}
|