2018-12-12 20:43:14 -06:00
|
|
|
// Test that the goto chain starting from bb0 is collapsed.
|
2021-08-02 10:15:13 -05:00
|
|
|
// compile-flags: -Cpanic=abort
|
|
|
|
// no-prefer-dynamic
|
2018-12-12 20:43:14 -06:00
|
|
|
|
2020-07-27 14:22:43 -05:00
|
|
|
// EMIT_MIR simplify_cfg.main.SimplifyCfg-initial.diff
|
|
|
|
// EMIT_MIR simplify_cfg.main.SimplifyCfg-early-opt.diff
|
2018-12-12 20:43:14 -06:00
|
|
|
fn main() {
|
|
|
|
loop {
|
|
|
|
if bar() {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[inline(never)]
|
|
|
|
fn bar() -> bool {
|
|
|
|
true
|
|
|
|
}
|