mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
16 lines
388 B
Rust
16 lines
388 B
Rust
// 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!();
|
|
}
|