2 // compile-flags: -Copt-level=0
4 // Regression test for #88043: LLVM crash when the RemoveZsts mir-opt pass is enabled.
5 // We should not see the error:
6 // `Basic Block in function '_ZN4main10take_until17h0067b8a660429bc9E' does not have terminator!`
8 fn bump() -> Option<usize> {
12 fn take_until(terminate: impl Fn() -> bool) {
28 fn f(_a: Option<String>) -> Option<u32> {
35 fn g() -> Option<u32> { None }