]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/asm_unwind_panic_abort.rs
Rollup merge of #100367 - fmease:fix-100365, r=compiler-errors
[rust.git] / src / test / mir-opt / asm_unwind_panic_abort.rs
1 //! Tests that unwinding from an asm block is caught and forced to abort
2 //! when `-C panic=abort`.
3
4 // min-llvm-version: 13.0.0
5 // only-x86_64
6 // compile-flags: -C panic=abort
7 // no-prefer-dynamic
8
9 #![feature(asm_unwind)]
10
11 // EMIT_MIR asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir
12 fn main() {
13     unsafe {
14         std::arch::asm!("", options(may_unwind));
15     }
16 }