rust/tests/mir-opt/dataflow-const-prop/self_assign_add.rs

9 lines
146 B
Rust
Raw Normal View History

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