bloat-buster/tests/bool_pair.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

19 lines
242 B
Plaintext

BoolPair = struct
{
a: u1,
b: u1,
}
bool_pair = fn () BoolPair
{
return { .a = 0, .b = 1 };
}
[export] main = fn [cc(c)] () s32
{
>result = bool_pair();
if (result.a) #trap();
if (!result.b) #trap();
return 0;
}