]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/c-static-rlib/foo.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / run-make-fulldeps / c-static-rlib / foo.rs
1 #![crate_type = "rlib"]
2
3 #[link(name = "cfoo", kind = "static")]
4 extern "C" {
5     fn foo();
6 }
7
8 pub fn rsfoo() {
9     unsafe { foo() }
10 }