summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-cfg-target-thread-local.rs
blob: b600ad23eee6405182842b61de3956975d8b2034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// ignore-windows
// aux-build:cfg-target-thread-local.rs

#![feature(thread_local)]

extern crate cfg_target_thread_local;

extern "C" {
    #[cfg_attr(target_thread_local, thread_local)]
    //~^ `cfg(target_thread_local)` is experimental and subject to change
    static FOO: u32;
}

fn main() {
    assert_eq!(FOO, 3);
}