rust/tests/mir-opt/dataflow-const-prop/terminator.rs
2023-01-11 09:32:08 +00:00

11 lines
198 B
Rust

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