]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/loop.rs
Rollup merge of #82535 - wesleywiser:wip_codegen_thread_names, r=nagisa
[rust.git] / src / test / codegen / loop.rs
1 // compile-flags: -C opt-level=3
2
3 #![crate_type = "lib"]
4
5 // CHECK-LABEL: @check_loop
6 #[no_mangle]
7 pub fn check_loop() -> u8 {
8     // CHECK-NOT: unreachable
9     call_looper()
10 }
11
12 #[no_mangle]
13 fn call_looper() -> ! {
14     loop {}
15 }