rust/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs

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

15 lines
165 B
Rust
Raw Normal View History

#![crate_type = "rlib"]
extern crate foo;
2016-12-05 18:31:05 -06:00
#[link(name = "bar", kind = "static")]
2020-09-01 16:12:52 -05:00
extern "C" {
fn bar();
}
pub fn doit() {
2020-09-01 16:12:52 -05:00
unsafe {
bar();
}
}