bloat-buster/tests/return_array.bbb
David Gonzalez Martin f2c19e5407
Some checks failed
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 35s
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 32s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 37s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 2m45s
CI / ci (MinSizeRel, ubuntu-latest) (push) Successful in 35s
CI / ci (Release, ubuntu-latest) (push) Successful in 31s
CI / ci (RelWithDebInfo, ubuntu-latest) (push) Successful in 37s
CI / ci (Debug, ubuntu-latest) (push) Has been cancelled
Compile first executable with self-hosted compiler
2025-06-04 21:20:51 -06:00

23 lines
256 B
Plaintext

SomeEnum = enum
{
a,
b,
c,
d,
e,
f,
}
foo = fn () [2]SomeEnum
{
return [ .f, .e ];
}
[export] main = fn [cc(c)] () s32
{
>result = foo();
if (result[0] != .f) #trap();
if (result[1] != .e) #trap();
return 0;
}