mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
11 lines
194 B
Rust
11 lines
194 B
Rust
#[link(name = "native_dep.ext", kind = "static", modifiers = "+verbatim")]
|
|
extern "C" {
|
|
fn native_f1() -> i32;
|
|
}
|
|
|
|
pub fn rust_dep() {
|
|
unsafe {
|
|
assert!(native_f1() == 1);
|
|
}
|
|
}
|