Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
threads-sendsync
/
auxiliary
/
thread-local-extern-static.rs
blob: b237b1c480e3a6b73aa599a5054c76be8d55ffbf [
file
] [
log
] [
blame
]
#![
feature
(
cfg_target_thread_local
,
const_fn
,
thread_local
)]
#![
crate_type
=
"lib"
]
#[
cfg
(
target_thread_local
)]
use
std
::
cell
::
Cell
;
#[
no_mangle
]
#[
cfg
(
target_thread_local
)]
#[
thread_local
]
pub
static
FOO
:
Cell
<
u32
>
=
Cell
::
new
(
3
);