2023-04-20 09:37:15 -05:00
|
|
|
//@run-rustfix
|
2022-12-01 22:29:47 -06:00
|
|
|
|
|
|
|
#![feature(lang_items, start, libc)]
|
|
|
|
#![no_std]
|
|
|
|
#![deny(clippy::zero_ptr)]
|
|
|
|
|
|
|
|
#[start]
|
|
|
|
fn main(_argc: isize, _argv: *const *const u8) -> isize {
|
|
|
|
let _ = core::ptr::null::<usize>();
|
|
|
|
let _ = core::ptr::null_mut::<f64>();
|
|
|
|
let _: *const u8 = core::ptr::null();
|
|
|
|
0
|
|
|
|
}
|
|
|
|
|
|
|
|
#[panic_handler]
|
|
|
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[lang = "eh_personality"]
|
|
|
|
extern "C" fn eh_personality() {}
|