Skip to content

Commit c2c58a3

Browse files
committed
Fix test case. Needs no_mangle and aux-build
1 parent 91648e2 commit c2c58a3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/test/auxiliary/thread-local-extern-static.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
#![feature(thread_local)]
12+
#![crate_type = "lib"]
1213

14+
#[no_mangle]
1315
#[thread_local]
1416
pub static FOO: u32 = 3;

src/test/run-pass/thread-local-extern-static.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// aux-build:thread-local-extern-static.rs
12+
1113
#![feature(thread_local)]
1214

1315
extern crate thread_local_extern_static;

0 commit comments

Comments
 (0)