mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
252 B
Rust
13 lines
252 B
Rust
// 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);
|
|
}
|