]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/c-dynamic-rlib/foo.rs
rustdoc-json: Make the `fns/generics.rs` test much more robust
[rust.git] / src / test / 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 }