diff options
| -rw-r--r-- | src/test/ui/asm/aarch64/may_unwind.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/asm/x86_64/may_unwind.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/asm/aarch64/may_unwind.rs b/src/test/ui/asm/aarch64/may_unwind.rs index 8e1ece53a47..05892ec8a20 100644 --- a/src/test/ui/asm/aarch64/may_unwind.rs +++ b/src/test/ui/asm/aarch64/may_unwind.rs @@ -24,7 +24,7 @@ fn main() { let flag = &mut true; catch_unwind(AssertUnwindSafe(|| { let _foo = Foo(flag); - unsafe { asm!("bl _panicky", options(may_unwind)) }; + unsafe { asm!("bl _panicky", clobber_abi("C"), options(may_unwind)) }; })) .expect_err("expected a panic"); assert_eq!(*flag, false); diff --git a/src/test/ui/asm/x86_64/may_unwind.rs b/src/test/ui/asm/x86_64/may_unwind.rs index cec597ea24e..0d7c055fff8 100644 --- a/src/test/ui/asm/x86_64/may_unwind.rs +++ b/src/test/ui/asm/x86_64/may_unwind.rs @@ -24,7 +24,7 @@ fn main() { let flag = &mut true; catch_unwind(AssertUnwindSafe(|| { let _foo = Foo(flag); - unsafe { asm!("call panicky", options(may_unwind)) }; + unsafe { asm!("call panicky", clobber_abi("C"), options(may_unwind)) }; })) .expect_err("expected a panic"); assert_eq!(*flag, false); |
