summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/issue-51671/app.rs
blob: c13937dcfbe55f00dcd5b7f50632b64b9b43f5a6 (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)]
#![no_main]
#![no_std]

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

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

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

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