diff options
Diffstat (limited to 'tests/ui/asm/may_unwind.rs')
-rw-r--r-- | tests/ui/asm/may_unwind.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/asm/may_unwind.rs b/tests/ui/asm/may_unwind.rs new file mode 100644 index 000000000..b9479c44b --- /dev/null +++ b/tests/ui/asm/may_unwind.rs @@ -0,0 +1,10 @@ +// run-pass +// needs-asm-support + +#![feature(asm_unwind)] + +use std::arch::asm; + +fn main() { + unsafe { asm!("", options(may_unwind)) }; +} |