2024-02-16 20:02:50 +00:00
|
|
|
//@ compile-flags: -C panic=abort
|
|
|
|
//@ no-prefer-dynamic
|
2018-06-19 19:44:18 +02:00
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
#![crate_type = "staticlib"]
|
2023-04-25 00:08:35 +02: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 {}
|
|
|
|
}
|
|
|
|
|
2023-04-25 00:08:35 +02:00
|
|
|
#[alloc_error_handler]
|
|
|
|
fn oom(_: core::alloc::Layout) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2018-06-19 19:44:18 +02:00
|
|
|
extern crate alloc;
|