blob: 4f3f6b1b3ac02445fb963fee3f4c3738e79e459b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(thread_local)]
#[thread_local]
static mut FOO: u8 = 3;
fn main() {
unsafe {
let a = &FOO;
FOO = 42;
}
}
// EMIT_MIR rustc.main.SimplifyCfg-final.after.mir
|