blob: d151f666a2dc2cb65aafac447c1ba5ba5b5a2ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// unit-test: DataflowConstProp
fn foo(n: i32) {}
// EMIT_MIR terminator.main.DataflowConstProp.diff
fn main() {
let a = 1;
// Checks that we propagate into terminators.
foo(a + 1);
}
|