blob: 92a42f22c218fde929297fba009f04ff66422371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// skip-filecheck
// 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);
}
|