2022-11-22 11:12:26 +01:00
|
|
|
// Auxiliary crate that exports a function and static. Both always
|
|
|
|
// evaluate to `71`. We force mutability on the static to prevent
|
|
|
|
// it from being inlined as constant.
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
#[no_mangle]
|
2024-05-29 14:11:20 +10:00
|
|
|
pub fn extern_fn() -> u8 {
|
|
|
|
unsafe { extern_static }
|
|
|
|
}
|
2022-11-22 11:12:26 +01:00
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub static mut extern_static: u8 = 71;
|