2023-10-16 17:36:39 +00:00
|
|
|
// skip-filecheck
|
2023-04-12 14:04:41 +01:00
|
|
|
// Check that `UnwindAction::Unreachable` is not generated for unwindable intrinsics.
|
2023-06-08 09:18:34 +02:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2023-04-12 14:04:41 +01: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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const fn ow_ct() -> ! {
|
|
|
|
panic!();
|
|
|
|
}
|