bloat-buster/tests/min_max.bbb
David Gonzalez Martin eb88c61f88
All checks were successful
CI / ci (MinSizeRel, ubuntu-latest) (push) Successful in 34s
CI / ci (Release, ubuntu-latest) (push) Successful in 31s
CI / ci (RelWithDebInfo, ubuntu-latest) (push) Successful in 36s
CI / ci (Debug, ubuntu-latest) (push) Successful in 2m46s
Compile first executable with self-hosted compiler
2025-06-04 21:25:30 -06:00

11 lines
186 B
Plaintext

[export] main = fn [cc(c)] () s32
{
>a: u32 = 1;
>b: u32 = 2;
>min = #min(a, b);
>max = #max(a, b);
if (min != a) #trap();
if (max != b) #trap();
return 0;
}