rust/tests/mir-opt/simplify_if.rs

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

15 lines
270 B
Rust
Raw Normal View History

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