We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e9ccdf commit fb35ceeCopy full SHA for fb35cee
2 files changed
src/test/ui/asm/aarch64/may_unwind.rs
@@ -24,7 +24,7 @@ fn main() {
24
let flag = &mut true;
25
catch_unwind(AssertUnwindSafe(|| {
26
let _foo = Foo(flag);
27
- unsafe { asm!("bl _panicky", options(may_unwind)) };
+ unsafe { asm!("bl _panicky", clobber_abi("C"), options(may_unwind)) };
28
}))
29
.expect_err("expected a panic");
30
assert_eq!(*flag, false);
src/test/ui/asm/x86_64/may_unwind.rs
- unsafe { asm!("call panicky", options(may_unwind)) };
+ unsafe { asm!("call panicky", clobber_abi("C"), options(may_unwind)) };
0 commit comments