Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
mir-opt
/
tls_access.rs
blob: 3dfc85def99e0b2e19ec32cbac07212313791c9e [
file
] [
log
] [
blame
] [
edit
]
// skip-filecheck
// EMIT_MIR tls_access.main.PreCodegen.after.mir
//@ compile-flags: -Zmir-opt-level=0
#![
feature
(
thread_local
)]
#[
thread_local
]
static
mut
FOO
:
u8
=
3
;
fn
main
()
{
unsafe
{
let
a
=
&
FOO
;
FOO
=
42
;
}
}