]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/mutable_variable_no_prop.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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 }