]> git.lizzy.rs Git - rust.git/blob - tests/run-make/rlib-format-packed-bundled-libs/rust_dep_local.rs
Auto merge of #107738 - matthiaskrgr:rollup-o18lzi8, r=matthiaskrgr
[rust.git] / tests / run-make / rlib-format-packed-bundled-libs / rust_dep_local.rs
1 #[link(name = "native_dep_1", kind = "static")]
2 extern "C" {
3     fn native_f1() -> i32;
4 }
5
6 extern crate rust_dep_up;
7
8 pub fn rust_dep_local() {
9     unsafe {
10         assert!(native_f1() == 1);
11     }
12     rust_dep_up::rust_dep_up();
13 }