blob: 114dbeca5acf11ace5b86764520a457b9139a50c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// 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);
}
|