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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
206 B
Rust
Raw Normal View History

// skip-filecheck
// 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;
}