rust/tests/mir-opt/dataflow-const-prop/terminator.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
198 B
Rust
Raw Normal View History

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