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