]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/mutable_variable_no_prop.rs
rustc_codegen_llvm: Give each codegen unit a unique DWARF name on all
[rust.git] / src / test / mir-opt / const_prop / mutable_variable_no_prop.rs
1 // compile-flags: -O
2
3 static mut STATIC: u32 = 42;
4
5 // EMIT_MIR mutable_variable_no_prop.main.ConstProp.diff
6 fn main() {
7     let mut x = 42;
8     unsafe {
9         x = STATIC;
10     }
11     let y = x;
12 }