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
19 lines
242 B
Plaintext
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;
|
|
}
|