#zig build-obj { --name test -fno-emit-bin -target x86_64-linux-none -Mroot=test.zig #} #write test.zig { export fn zig_array(x: [10]u8) void { try std.testing.expect(std.mem.eql(u8, &x, "1234567890")); } const std = @import("std"); export fn zig_return_array() [10]u8 { return "1234567890".*; } #} #update #check errors { test.zig:1:21: error: parameter of type '[10]u8' not allowed in function with calling convention 'x86_64_sysv' test.zig:1:21: note: arrays are not allowed as a parameter type test.zig:5:30: error: return type '[10]u8' not allowed in function with calling convention 'x86_64_sysv' test.zig:5:30: note: arrays are not allowed as a return type #}