File tree 2 files changed +4
-2
lines changed
tests/ui/thread-local/auxiliary
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
#![ crate_type = "dylib" ]
2
2
#![ feature( thread_local) ]
3
3
#![ feature( cfg_target_thread_local) ]
4
- #![ cfg( target_thread_local) ]
5
4
6
5
extern crate tls_rlib;
7
6
8
7
pub use tls_rlib:: * ;
9
8
9
+ #[ cfg( target_thread_local) ]
10
10
#[ thread_local]
11
11
pub static FOO : bool = true ;
12
12
13
+ #[ cfg( target_thread_local) ]
13
14
#[ inline( never) ]
14
15
pub fn foo_addr ( ) -> usize {
15
16
& FOO as * const bool as usize
Original file line number Diff line number Diff line change 3
3
#![ crate_type = "rlib" ]
4
4
#![ feature( thread_local) ]
5
5
#![ feature( cfg_target_thread_local) ]
6
- #![ cfg( target_thread_local) ]
7
6
7
+ #[ cfg( target_thread_local) ]
8
8
#[ thread_local]
9
9
pub static BAR : bool = true ;
10
10
11
+ #[ cfg( target_thread_local) ]
11
12
#[ inline( never) ]
12
13
pub fn bar_addr ( ) -> usize {
13
14
& BAR as * const bool as usize
You can’t perform that action at this time.
0 commit comments