rust/tests/mir-opt/dataflow-const-prop/terminator.rs
2023-06-12 09:34:15 +02:00

12 lines
234 B
Rust

// 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);
}