2024-05-29 15:01:33 +10:00
|
|
|
#![crate_type = "rlib"]
|
2016-12-01 15:06:33 -05:00
|
|
|
|
|
|
|
|
pub fn public_rust_function_from_rlib() {}
|
|
|
|
|
|
|
|
|
|
#[no_mangle]
|
2018-03-13 14:21:50 +01:00
|
|
|
pub extern "C" fn public_c_function_from_rlib() {
|
|
|
|
|
let _ = public_generic_function_from_rlib(0u64);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn public_generic_function_from_rlib<T>(x: T) -> T {
|
|
|
|
|
x
|
|
|
|
|
}
|