rust/tests/mir-opt/issue_104451_unwindable_intrinsics.rs

14 lines
376 B
Rust
Raw Permalink Normal View History

// skip-filecheck
2023-04-12 08:04:41 -05:00
// Check that `UnwindAction::Unreachable` is not generated for unwindable intrinsics.
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
2023-04-12 08:04:41 -05:00
#![feature(core_intrinsics)]
// EMIT_MIR issue_104451_unwindable_intrinsics.main.AbortUnwindingCalls.after.mir
fn main() {
unsafe { core::intrinsics::const_eval_select((), ow_ct, ow_ct) }
2023-04-12 08:04:41 -05:00
}
const fn ow_ct() -> ! {
panic!();
}