diff options
Diffstat (limited to 'tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs')
-rw-r--r-- | tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs b/tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs new file mode 100644 index 000000000..bd5c8f81c --- /dev/null +++ b/tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs @@ -0,0 +1,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; |