2022-07-08 11:08:32 -05:00
|
|
|
//@compile-flags: -Zmiri-disable-abi-check
|
2021-08-05 04:10:30 -05:00
|
|
|
// This feature is required to trigger the error using the "C" ABI.
|
|
|
|
#![feature(c_unwind)]
|
2021-04-15 16:19:23 -05:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
fn miri_start_panic(payload: *mut u8) -> !;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe { miri_start_panic(&mut 0) }
|
2022-07-11 06:44:55 -05:00
|
|
|
//~^ ERROR: unwinding past a stack frame that does not allow unwinding
|
2021-04-15 16:19:23 -05:00
|
|
|
}
|