File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn main() {
24
24
let flag = & mut true ;
25
25
catch_unwind ( AssertUnwindSafe ( || {
26
26
let _foo = Foo ( flag) ;
27
- unsafe { asm ! ( "bl _panicky" , options( may_unwind) ) } ;
27
+ unsafe { asm ! ( "bl _panicky" , clobber_abi ( "C" ) , options( may_unwind) ) } ;
28
28
} ) )
29
29
. expect_err ( "expected a panic" ) ;
30
30
assert_eq ! ( * flag, false ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn main() {
24
24
let flag = & mut true ;
25
25
catch_unwind ( AssertUnwindSafe ( || {
26
26
let _foo = Foo ( flag) ;
27
- unsafe { asm ! ( "call panicky" , options( may_unwind) ) } ;
27
+ unsafe { asm ! ( "call panicky" , clobber_abi ( "C" ) , options( may_unwind) ) } ;
28
28
} ) )
29
29
. expect_err ( "expected a panic" ) ;
30
30
assert_eq ! ( * flag, false ) ;
You can’t perform that action at this time.
0 commit comments