phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
18
apps/tests/nested_loop_inner_break_isolated.hako
Normal file
18
apps/tests/nested_loop_inner_break_isolated.hako
Normal file
@ -0,0 +1,18 @@
|
||||
static box Main {
|
||||
main(args) {
|
||||
local i = 0
|
||||
local s = 0
|
||||
loop(i < 3) {
|
||||
local j = 0
|
||||
loop(j < 4) {
|
||||
j = j + 1
|
||||
if (j == 3) { break }
|
||||
s = s + 1
|
||||
}
|
||||
i = i + 1
|
||||
}
|
||||
// outer=3 回、各回で j=1,2 のみ加算 → 2×3=6
|
||||
return s
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user