]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/symbol-visibility/an_rlib.rs
Rollup merge of #107389 - zvavybir:master, r=estebank
[rust.git] / tests / run-make-fulldeps / symbol-visibility / an_rlib.rs
1 #![crate_type="rlib"]
2
3 pub fn public_rust_function_from_rlib() {}
4
5 #[no_mangle]
6 pub extern "C" fn public_c_function_from_rlib() {
7     let _ = public_generic_function_from_rlib(0u64);
8 }
9
10 pub fn public_generic_function_from_rlib<T>(x: T) -> T {
11     x
12 }