From fb35cee709119dcc623eb57ae6aa0c1ca56c1481 Mon Sep 17 00:00:00 2001 From: cynecx Date: Fri, 19 Nov 2021 22:41:16 +0100 Subject: [PATCH] add clobber_abi("C") to may_unwind inline-asm tests --- src/test/ui/asm/aarch64/may_unwind.rs | 2 +- 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 8e1ece53a47b..05892ec8a209 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 cec597ea24ea..0d7c055fff83 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);