Files
rust/tests/ui/empty_loop_no_std.rs
T
Samuel Tardieu 76457e60d7 Reenable some tests on "apple" targets
Those tests appear to be passing on "apple" targets as well.
2025-12-19 10:40:49 +01:00

11 lines
237 B
Rust

//@compile-flags: -Clink-arg=-nostartfiles
#![warn(clippy::empty_loop)]
#![crate_type = "lib"]
#![no_std]
pub fn main(argc: isize, argv: *const *const u8) -> isize {
// This should trigger the lint
loop {}
//~^ empty_loop
}