rust/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs
2023-01-11 09:32:08 +00:00

11 lines
147 B
Rust

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