blob: 8280c7d6c5156e68ffa6ca3d6ec4423461a09724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#[link(name = "native_dep_1", kind = "static")]
extern "C" {
fn native_f1() -> i32;
}
extern crate rust_dep_up;
pub fn rust_dep_local() {
unsafe {
assert!(native_f1() == 1);
}
rust_dep_up::rust_dep_up();
}
|