rust/tests/ui/panic-runtime/need-abort-got-immediate-abort.rs
2025-09-21 13:12:18 -04:00

22 lines
529 B
Rust

//@ build-fail
//@ aux-build:needs-abort.rs
//@ compile-flags:-Cpanic=immediate-abort -Zunstable-options
//@ no-prefer-dynamic
//@ add-core-stubs
//@ core-stubs-compile-flags: -Cpanic=immediate-abort -Zunstable-options
#![feature(no_core)]
#![no_std]
#![no_main]
#![no_core]
extern crate minicore;
extern crate needs_abort;
#[no_mangle]
extern "C" fn main(_argc: i32, _argv: *const *const u8) -> i32 {
0
}
//~? ERROR the crate `needs_abort` was compiled with a panic strategy which is incompatible with `immediate-abort`