This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Description
int panic(void) {
return 0;
}
int main(void) {
int x = panic();
return x;
}
Trying to build the translated file produces:
local/zig-aarch64-macos-0.15.0-dev.847+850655f06/lib/std/builtin.zig:1152:25: error: expected 0 argument(s), found 3
root.panic(msg, @errorReturnTrace(), ra);
~~~~^~~~~~
test.zig:4:12: note: function declared here
pub export fn panic() c_int {
~~~~~~~~~~~^~~~~~~~~~~~~~~~