File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tests/ui/thread-local/auxiliary Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11#![ crate_type = "dylib" ]
22#![ feature( thread_local) ]
33#![ feature( cfg_target_thread_local) ]
4- #![ cfg( target_thread_local) ]
54
65extern crate tls_rlib;
76
87pub use tls_rlib:: * ;
98
9+ #[ cfg( target_thread_local) ]
1010#[ thread_local]
1111pub static FOO : bool = true ;
1212
13+ #[ cfg( target_thread_local) ]
1314#[ inline( never) ]
1415pub fn foo_addr ( ) -> usize {
1516 & FOO as * const bool as usize
Original file line number Diff line number Diff line change 33#![ crate_type = "rlib" ]
44#![ feature( thread_local) ]
55#![ feature( cfg_target_thread_local) ]
6- #![ cfg( target_thread_local) ]
76
7+ #[ cfg( target_thread_local) ]
88#[ thread_local]
99pub static BAR : bool = true ;
1010
11+ #[ cfg( target_thread_local) ]
1112#[ inline( never) ]
1213pub fn bar_addr ( ) -> usize {
1314 & BAR as * const bool as usize
You can’t perform that action at this time.
0 commit comments