1 // compile-flags: -Clink-arg=-nostartfiles
5 #![warn(clippy::empty_loop)]
6 #![feature(lang_items, start, libc)]
9 use core::panic::PanicInfo;
12 fn main(argc: isize, argv: *const *const u8) -> isize {
13 // This should trigger the lint
18 fn panic(_info: &PanicInfo) -> ! {
19 // This should NOT trigger the lint
23 #[lang = "eh_personality"]
24 extern "C" fn eh_personality() {
25 // This should also trigger the lint