]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/tls_access.rs
Rollup merge of #107719 - WaffleLapkin:de-arena-allocates-you-UwU, r=cjgillot
[rust.git] / tests / mir-opt / tls_access.rs
1 // EMIT_MIR tls_access.main.PreCodegen.after.mir
2 // compile-flags: -Zmir-opt-level=0
3
4 #![feature(thread_local)]
5
6 #[thread_local]
7 static mut FOO: u8 = 3;
8
9 fn main() {
10     unsafe {
11         let a = &FOO;
12         FOO = 42;
13     }
14 }