]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/cdylib/foo.rs
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
[rust.git] / src / test / run-make-fulldeps / cdylib / foo.rs
1 #![crate_type = "cdylib"]
2
3 extern crate bar;
4
5 #[no_mangle]
6 pub extern "C" fn foo() {
7     bar::bar();
8 }
9
10 #[no_mangle]
11 pub extern "C" fn bar(a: u32, b: u32) -> u32 {
12     a + b
13 }