summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs
blob: f70bb338223e0b96b4d1c086b4f89e75e5468172 (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type = "rlib"]

#[link(name = "foo", kind = "static")]
extern "C" {
    fn foo() -> i32;
}

pub fn foo1() -> i32 {
    unsafe { foo() }
}