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() {
2424 let flag = & mut true ;
2525 catch_unwind ( AssertUnwindSafe ( || {
2626 let _foo = Foo ( flag) ;
27- unsafe { asm ! ( "bl _panicky" , options( may_unwind) ) } ;
27+ unsafe { asm ! ( "bl _panicky" , clobber_abi ( "C" ) , options( may_unwind) ) } ;
2828 } ) )
2929 . expect_err ( "expected a panic" ) ;
3030 assert_eq ! ( * flag, false ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn main() {
2424 let flag = & mut true ;
2525 catch_unwind ( AssertUnwindSafe ( || {
2626 let _foo = Foo ( flag) ;
27- unsafe { asm ! ( "call panicky" , options( may_unwind) ) } ;
27+ unsafe { asm ! ( "call panicky" , clobber_abi ( "C" ) , options( may_unwind) ) } ;
2828 } ) )
2929 . expect_err ( "expected a panic" ) ;
3030 assert_eq ! ( * flag, false ) ;
You can’t perform that action at this time.
0 commit comments