rust/tests/mir-opt/simplify_if.rs

15 lines
270 B
Rust
Raw Normal View History

// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
2020-04-02 21:09:01 +00:00
#[inline(never)]
fn noop() {}
2021-12-01 02:54:37 +00:00
// EMIT_MIR simplify_if.main.SimplifyConstCondition-after-const-prop.diff
fn main() {
2024-01-28 19:50:20 +00:00
// CHECK-LABEL: fn main(
// CHECK: bb0: {
// CHECK-NEXT: return;
if false {
2020-04-02 21:09:01 +00:00
noop();
}
}