rust/tests/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs
2024-02-16 20:02:50 +00:00

16 lines
299 B
Rust

//@ no-prefer-dynamic
#![crate_type = "rlib"]
#![no_std]
#![feature(lang_items)]
use core::panic::PanicInfo;
#[lang = "panic_impl"]
fn panic_impl(info: &PanicInfo) -> ! { loop {} }
#[lang = "eh_personality"]
fn eh_personality() {}
#[lang = "eh_catch_typeinfo"]
static EH_CATCH_TYPEINFO: u8 = 0;