]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/c-static-rlib/foo.rs
Rollup merge of #101116 - GuillaumeGomez:rm-attrs-ty-alias, r=notriddle
[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 }