2018-07-06 15:49:52 +02:00
|
|
|
// compile-flags:-C panic=abort
|
|
|
|
|
2018-08-23 00:40:32 +02:00
|
|
|
#![feature(alloc_error_handler, panic_handler)]
|
2018-07-06 15:49:52 +02:00
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
struct Layout;
|
|
|
|
|
|
|
|
#[alloc_error_handler]
|
|
|
|
fn oom() -> ! { //~ ERROR function should have one argument
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2018-08-23 00:40:32 +02:00
|
|
|
#[panic_handler]
|
2018-07-06 15:49:52 +02:00
|
|
|
fn panic(_: &core::panic::PanicInfo) -> ! { loop {} }
|