summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/issue-51671/app.rs
blob: e9dc1e9744fb143a2c406f72de9425a33fde97b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#![crate_type = "bin"]
#![feature(lang_items, alloc_error_handler)]
#![no_main]
#![no_std]

use core::alloc::Layout;
use core::panic::PanicInfo;

#[panic_handler]
fn panic(_: &PanicInfo) -> ! {
    loop {}
}

#[lang = "eh_personality"]
fn eh() {}

#[alloc_error_handler]
fn oom(_: Layout) -> ! {
    loop {}
}