mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +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();
|
|
}
|
|
}
|