]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/asm_unwind_panic_abort.rs
Add extended error message for E0523
[rust.git] / tests / 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 // only-x86_64
5 // compile-flags: -C panic=abort
6 // no-prefer-dynamic
7
8 #![feature(asm_unwind)]
9
10 // EMIT_MIR asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir
11 fn main() {
12     unsafe {
13         std::arch::asm!("", options(may_unwind));
14     }
15 }