1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// compile-flags: -C opt-level=3 #![crate_type = "lib"] // CHECK-LABEL: @check_loop #[no_mangle] pub fn check_loop() -> u8 { // CHECK-NOT: unreachable call_looper() } #[no_mangle] fn call_looper() -> ! { loop {} }