rust/tests/run-make/archive-duplicate-names/foo.rs

15 lines
174 B
Rust

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