2021-04-15 16:19:23 -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) }
|
|
|
|
//~^ ERROR unwinding past a stack frame that does not allow unwinding
|
|
|
|
}
|