rust/src/test/ui/asm/may_unwind.rs
Amanieu d'Antras 44a3a66ee8 Stabilize asm! and global_asm!
They are also removed from the prelude as per the decision in
https://github.com/rust-lang/rust/issues/87228.

stdarch and compiler-builtins are updated to work with the new, stable
asm! and global_asm! macros.
2021-12-12 11:20:03 +00:00

12 lines
168 B
Rust

// min-llvm-version: 13.0.0
// run-pass
// needs-asm-support
#![feature(asm_unwind)]
use std::arch::asm;
fn main() {
unsafe { asm!("", options(may_unwind)) };
}