bloat-buster/tests/basic_bool_call.bbb
David Gonzalez Martin 510f27e13f
All checks were successful
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 1m10s
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 1m9s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 1m13s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 2m44s
CI / ci (MinSizeRel, ubuntu-latest) (push) Successful in 1m5s
CI / ci (RelWithDebInfo, ubuntu-latest) (push) Successful in 1m5s
CI / ci (Release, ubuntu-latest) (push) Successful in 1m4s
CI / ci (Debug, ubuntu-latest) (push) Successful in 2m37s
Port the compiler from Zig to C++
2025-05-23 07:47:53 -06:00

17 lines
181 B
Plaintext

require = fn (ok: u1) void
{
if (!ok) #trap();
}
bb_bool = fn (x: u8) void
{
require(#truncate(x));
}
[export] main = fn [cc(c)] () s32
{
bb_bool(1);
return 0;
}