summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs
blob: bd5c8f81c005badb574dfb559ea068e359581cc4 (plain)
1
2
3
4
5
6
7
#![feature(thread_local)]
#![feature(cfg_target_thread_local)]
#![crate_type = "lib"]

#[no_mangle]
#[cfg_attr(target_thread_local, thread_local)]
pub static FOO: u32 = 3;