bloat-buster/tests/shortcircuiting_if.bbb
David Gonzalez Martin 72f887c707
All checks were successful
CI / ci (ReleaseFast, ubuntu-latest) (push) Successful in 2m13s
CI / ci (ReleaseSmall, ubuntu-latest) (push) Successful in 2m12s
CI / ci (ReleaseSafe, ubuntu-latest) (push) Successful in 2m18s
CI / ci (Debug, ubuntu-latest) (push) Successful in 3m28s
Shortcircuiting if
2025-04-17 22:01:14 -06:00

17 lines
322 B
Plaintext

[export] main = fn [cc(c)] (argument_count: u32) s32
{
>a: s32 = 0;
if (argument_count != 0 and? argument_count != 2 and? argument_count != 3 or? argument_count != 1)
{
return 0;
}
else if (argument_count == 5 or? a == 0)
{
return 45;
}
else
{
return 1;
}
}