rust/tests/run-make/archive-duplicate-names/foo.rs
2023-03-30 07:34:55 -05:00

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();
}
}