rust/tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
194 B
Rust
Raw Normal View History

#[link(name = "native_dep.ext", kind = "static", modifiers = "+verbatim")]
extern "C" {
fn native_f1() -> i32;
}
pub fn rust_dep() {
unsafe {
assert!(native_f1() == 1);
}
}