1 // compile-flags: -C opt-level=3
5 // Verify that we don't miscompile this even if rustc didn't apply the trivial loop detection to
6 // insert the sideeffect intrinsic.
8 fn infinite_loop() -> u8 {
10 // CHECK-NOT: sideeffect
23 // CHECK-NOT: unreachable
24 // CHECK: br label %{{.+}}
25 // CHECK-NOT: unreachable
26 let x = infinite_loop();