mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +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);
|
|
}
|
|
}
|