rust/tests/run-make/lto-no-link-whole-rlib/lib1.rs

11 lines
147 B
Rust

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