Skip to content

Commit

Permalink
Run thread-local-extern-static test only on supported platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
mneumann committed Feb 21, 2016
1 parent c2c58a3 commit 4ef60a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/auxiliary/thread-local-extern-static.rs
Expand Up @@ -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;
3 changes: 2 additions & 1 deletion src/test/run-pass/thread-local-extern-static.rs
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4ef60a2

Please sign in to comment.