2018-06-19 17:44:18 +00:00
|
|
|
//@ compile-flags: -C panic=abort
|
|
|
|
//@ no-prefer-dynamic
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
#![crate_type = "staticlib"]
|
2023-04-24 22:08:35 +00:00
|
|
|
#![feature(alloc_error_handler)]
|
2018-06-19 17:44:18 +00:00
|
|
|
|
2018-08-22 22:40:32 +00:00
|
|
|
#[panic_handler]
|
2018-06-19 17:44:18 +00:00
|
|
|
fn panic(_: &core::panic::PanicInfo) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2023-04-24 22:08:35 +00:00
|
|
|
#[alloc_error_handler]
|
|
|
|
fn oom(_: core::alloc::Layout) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2018-06-19 17:44:18 +00:00
|
|
|
extern crate alloc;
|
2025-03-23 12:50:51 +00:00
|
|
|
|
|
|
|
//~? ERROR no global memory allocator found but one is required
|