Fix test case. Needs no_mangle and aux-build
This commit is contained in:
parent
91648e283e
commit
c2c58a398d
2 changed files with 4 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![feature(thread_local)]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
#[no_mangle]
|
||||
#[thread_local]
|
||||
pub static FOO: u32 = 3;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:thread-local-extern-static.rs
|
||||
|
||||
#![feature(thread_local)]
|
||||
|
||||
extern crate thread_local_extern_static;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue