blob: 4126fb3c68c4ff41799e174e8fcd69315089e5c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// compile-flags: -O
static mut STATIC: u32 = 42;
// EMIT_MIR mutable_variable_no_prop.main.ConstProp.diff
fn main() {
let mut x = 42;
unsafe {
x = STATIC;
}
let y = x;
}
|