rust/tests/compile-fail/panic/unwind_panic_abort.rs
2021-03-14 17:10:45 +01:00

12 lines
248 B
Rust

// compile-flags: -Cpanic=abort
//! Unwinding despite `-C panic=abort` is an error.
extern "Rust" {
fn miri_start_panic(payload: *mut u8) -> !;
}
fn main() {
unsafe { miri_start_panic(&mut 0); } //~ ERROR unwinding despite panic=abort
}