]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/interdependent-c-libraries/foo.rs
Rollup merge of #100897 - RalfJung:const-not-to-mutable, r=lcnr
[rust.git] / src / test / run-make-fulldeps / interdependent-c-libraries / foo.rs
1 #![crate_type = "rlib"]
2
3 #[link(name = "foo", kind = "static")]
4 extern "C" {
5     fn foo();
6 }
7
8 pub fn doit() {
9     unsafe {
10         foo();
11     }
12 }