2023-04-05 03:44:20 -05:00
|
|
|
// ignore-wasm32 compiled with panic=abort by default
|
2022-08-25 11:43:46 -05:00
|
|
|
// unit-test: DataflowConstProp
|
|
|
|
|
|
|
|
fn foo(n: i32) {}
|
|
|
|
|
|
|
|
// EMIT_MIR terminator.main.DataflowConstProp.diff
|
|
|
|
fn main() {
|
|
|
|
let a = 1;
|
2022-11-09 11:03:30 -06:00
|
|
|
// Checks that we propagate into terminators.
|
2022-08-25 11:43:46 -05:00
|
|
|
foo(a + 1);
|
|
|
|
}
|