rust/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs
2023-01-11 09:32:08 +00:00

15 lines
165 B
Rust

#![crate_type = "rlib"]
extern crate foo;
#[link(name = "bar", kind = "static")]
extern "C" {
fn bar();
}
pub fn doit() {
unsafe {
bar();
}
}