2023-02-03 01:05:59 -06:00
|
|
|
// no-prefer-dynamic
|
|
|
|
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
#![feature(thread_local)]
|
|
|
|
#![feature(cfg_target_thread_local)]
|
|
|
|
|
2023-03-29 07:50:10 -05:00
|
|
|
#[cfg(target_thread_local)]
|
2023-02-03 01:05:59 -06:00
|
|
|
#[thread_local]
|
|
|
|
pub static BAR: bool = true;
|
|
|
|
|
2023-03-29 07:50:10 -05:00
|
|
|
#[cfg(target_thread_local)]
|
2023-02-03 01:05:59 -06:00
|
|
|
#[inline(never)]
|
|
|
|
pub fn bar_addr() -> usize {
|
|
|
|
&BAR as *const bool as usize
|
|
|
|
}
|