//! > Test loop.
//! > test_runner_name
test_function_lowering
//! > function
fn foo() -> bool {
loop {
break true;
}
}
//! > function_name
foo
//! > module_code
//! > semantic_diagnostics
//! > lowering_diagnostics
//! > lowering_flat
Parameters:
blk0 (root):
Statements:
(v0: core::bool) <- test::foo[expr2]()
End:
Return(v0)
//! > ==========================================================================
//! > Test loop with break; only.
//! > test_runner_name
test_function_lowering
//! > function
fn foo() {
loop {
break;
};
}
//! > function_name
foo
//! > module_code
//! > semantic_diagnostics
//! > lowering_diagnostics
//! > lowering_flat
Parameters:
blk0 (root):
Statements:
(v0: ()) <- test::foo[expr0]()
(v1: ()) <- struct_construct()
End:
Return(v1)