]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/c-dynamic-rlib/foo.rs
Rollup merge of #107058 - clubby789:eqeq-homoglyph, r=wesleywiser
[rust.git] / tests / run-make-fulldeps / c-dynamic-rlib / foo.rs
1 #![crate_type = "rlib"]
2
3 #[link(name = "cfoo")]
4 extern "C" {
5     fn foo();
6 }
7
8 pub fn rsfoo() {
9     unsafe { foo() }
10 }