summary refs log tree commit diff
path: root/tests/mir-opt/issue_104451_unwindable_intrinsics.rs
blob: 80655a583c348940c66a4141febafccd6d01440c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// skip-filecheck
// Check that `UnwindAction::Unreachable` is not generated for unwindable intrinsics.
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![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) }
}

const fn ow_ct() -> ! {
    panic!();
}