rust/tests/compile-fail/panic/bad_miri_start_panic.rs

11 lines
236 B
Rust
Raw Normal View History

2021-04-15 16:19:23 -05:00
// compile-flags: -Zmiri-disable-abi-check
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
}