blob: 34fc35790c17f199cfb86d9c448da9086fae507a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// unit-test: DataflowConstProp
// EMIT_MIR if.main.DataflowConstProp.diff
fn main() {
let a = 1;
let b = if a == 1 { 2 } else { 3 };
let c = b + 1;
let d = if a == 1 { a } else { a + 1 };
let e = d + 1;
}
|