rust/tests/mir-opt/dataflow-const-prop/self_assign.rs
2023-01-11 09:32:08 +00:00

13 lines
188 B
Rust

// unit-test: DataflowConstProp
// EMIT_MIR self_assign.main.DataflowConstProp.diff
fn main() {
let mut a = 0;
a = a + 1;
a = a;
let mut b = &a;
b = b;
a = *b;
}