bloat-buster/tests/for_each_int.bbb
David Gonzalez Martin a8ec7caab7
All checks were successful
CI / ci (ReleaseFast, ubuntu-latest) (pull_request) Successful in 2m35s
CI / ci (ReleaseSmall, ubuntu-latest) (pull_request) Successful in 2m34s
CI / ci (ReleaseSafe, ubuntu-latest) (pull_request) Successful in 2m41s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 3m59s
CI / ci (ReleaseSmall, ubuntu-latest) (push) Successful in 2m28s
CI / ci (ReleaseFast, ubuntu-latest) (push) Successful in 2m32s
CI / ci (ReleaseSafe, ubuntu-latest) (push) Successful in 2m37s
CI / ci (Debug, ubuntu-latest) (push) Successful in 3m56s
For each integer
2025-04-25 17:47:01 -06:00

11 lines
173 B
Plaintext

[export] main = fn [cc(c)] () s32
{
>top: s32 = 64;
>accumulator: s32 = 0;
for (i: 0..top)
{
accumulator += 1;
}
return accumulator - top;
}