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

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

15 lines
174 B
Rust
Raw Normal View History

#![crate_type = "rlib"]
#[link(name = "foo", kind = "static")]
2020-09-01 21:12:52 +00:00
extern "C" {
fn foo();
fn bar();
}
pub fn baz() {
unsafe {
foo();
bar();
}
}