about summary refs log tree commit diff
path: root/tests/ui/panic-runtime/need-immediate-abort-got-unwind.rs
blob: 24d521230d49ad936b753491b2850997046ddf8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ build-fail
//@ needs-unwind
//@ aux-build:needs-immediate-abort.rs
//@ no-prefer-dynamic
//@ add-core-stubs
//@ core-stubs-compile-flags: -Zunstable-options -Cpanic=immediate-abort

#![feature(no_core)]
#![no_std]
#![no_main]
#![no_core]

extern crate minicore;
extern crate needs_immediate_abort;

extern "C" fn main(argc: i32, argv: *const *const u8) -> i32 {
    0
}

//~? ERROR the crate `need_immediate_abort_got_unwind` was compiled with a panic strategy which is incompatible with `immediate-abort`