diff options
| author | cynecx <me@cynecx.net> | 2021-11-19 22:41:16 +0100 |
|---|---|---|
| committer | cynecx <me@cynecx.net> | 2021-12-03 23:51:49 +0100 |
| commit | fb35cee709119dcc623eb57ae6aa0c1ca56c1481 (patch) | |
| tree | c0d5b0915b9c95e9a91ba7598892086b40df3f2e /src/test | |
| parent | 8e9ccdf28f91d56113117fd512819363602bdf89 (diff) | |
| download | rust-fb35cee709119dcc623eb57ae6aa0c1ca56c1481.tar.gz rust-fb35cee709119dcc623eb57ae6aa0c1ca56c1481.zip | |
add clobber_abi("C") to may_unwind inline-asm tests
Diffstat (limited to 'src/test')
| -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); |
