mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
FileCheck asm_unwind_panic_abort.rs
This commit is contained in:
parent
47fa01d2b8
commit
00a7958e79
@ -1,4 +1,3 @@
|
|||||||
// skip-filecheck
|
|
||||||
//! Tests that unwinding from an asm block is caught and forced to abort
|
//! Tests that unwinding from an asm block is caught and forced to abort
|
||||||
//! when `-C panic=abort`.
|
//! when `-C panic=abort`.
|
||||||
|
|
||||||
@ -10,6 +9,9 @@
|
|||||||
|
|
||||||
// EMIT_MIR asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir
|
// EMIT_MIR asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir
|
||||||
fn main() {
|
fn main() {
|
||||||
|
// CHECK-LABEL: fn main(
|
||||||
|
// CHECK: asm!(
|
||||||
|
// CHECK-SAME: unwind terminate(abi)
|
||||||
unsafe {
|
unsafe {
|
||||||
std::arch::asm!("", options(may_unwind));
|
std::arch::asm!("", options(may_unwind));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user