2023-10-16 17:36:39 +00:00
|
|
|
// skip-filecheck
|
2018-12-13 11:43:14 +09:00
|
|
|
// Test that the goto chain starting from bb0 is collapsed.
|
2021-08-02 08:15:13 -07:00
|
|
|
//@ compile-flags: -Cpanic=abort
|
|
|
|
//@ no-prefer-dynamic
|
2018-12-13 11:43:14 +09:00
|
|
|
|
2020-07-27 21:22:43 +02:00
|
|
|
// EMIT_MIR simplify_cfg.main.SimplifyCfg-initial.diff
|
2024-03-17 19:36:55 +01:00
|
|
|
// EMIT_MIR simplify_cfg.main.SimplifyCfg-post-analysis.diff
|
2018-12-13 11:43:14 +09:00
|
|
|
fn main() {
|
|
|
|
loop {
|
|
|
|
if bar() {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[inline(never)]
|
|
|
|
fn bar() -> bool {
|
|
|
|
true
|
|
|
|
}
|