mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-01 17:04:13 +00:00
22 lines
529 B
Rust
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`
|