Run thread-local-extern-static test only on supported platforms.

This commit is contained in:
Michael Neumann 2016-02-21 13:10:51 +01:00
parent c2c58a398d
commit 4ef60a27d9
2 changed files with 4 additions and 2 deletions

View file

@ -9,8 +9,9 @@
// except according to those terms.
#![feature(thread_local)]
#![feature(cfg_target_thread_local)]
#![crate_type = "lib"]
#[no_mangle]
#[thread_local]
#[cfg_attr(target_thread_local, thread_local)]
pub static FOO: u32 = 3;

View file

@ -11,11 +11,12 @@
// aux-build:thread-local-extern-static.rs
#![feature(thread_local)]
#![feature(cfg_target_thread_local)]
extern crate thread_local_extern_static;
extern {
#[thread_local]
#[cfg_attr(target_thread_local, thread_local)]
static FOO: u32;
}