]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs
Rollup merge of #104181 - jackh726:known-bug-tests, r=Mark-Simulacrum
[rust.git] / src / test / run-make-fulldeps / lto-no-link-whole-rlib / lib2.rs
1 #![crate_type = "rlib"]
2
3 extern crate lib1;
4
5 #[link(name = "bar", kind = "static")]
6 extern "C" {
7     fn foo() -> i32;
8 }
9
10 pub fn foo2() -> i32 {
11     unsafe { foo() }
12 }