2018-06-19 19:44:18 +02:00
|
|
|
// compile-flags: -C panic=abort
|
|
|
|
// no-prefer-dynamic
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
#![crate_type = "staticlib"]
|
2022-01-19 16:24:49 +01:00
|
|
|
#![feature(alloc_error_handler)]
|
2018-06-19 19:44:18 +02:00
|
|
|
|
2018-08-23 00:40:32 +02:00
|
|
|
#[panic_handler]
|
2018-06-19 19:44:18 +02:00
|
|
|
fn panic(_: &core::panic::PanicInfo) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2018-07-06 15:49:52 +02:00
|
|
|
#[alloc_error_handler]
|
|
|
|
fn oom(_: core::alloc::Layout) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
2018-06-19 19:44:18 +02:00
|
|
|
|
|
|
|
extern crate alloc;
|