]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/c-static-dylib/foo.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / run-make-fulldeps / c-static-dylib / foo.rs
1 #![crate_type = "dylib"]
2
3 #[link(name = "cfoo", kind = "static")]
4 extern "C" {
5     fn foo();
6 }
7
8 pub fn rsfoo() {
9     unsafe { foo() }
10 }