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

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);
}
}