diff --git a/test/stage2/test.zig b/test/stage2/test.zig index 91257526dd..11b1713181 100644 --- a/test/stage2/test.zig +++ b/test/stage2/test.zig @@ -8,6 +8,11 @@ const linux_x64 = std.zig.CrossTarget{ .os_tag = .linux, }; +const macosx_x64 = std.zig.CrossTarget{ + .cpu_arch = .x86_64, + .os_tag = .macosx, +}; + const linux_riscv64 = std.zig.CrossTarget{ .cpu_arch = .riscv64, .os_tag = .linux, @@ -133,6 +138,11 @@ pub fn addCases(ctx: *TestContext) !void { ); } + { + var case = ctx.exe("hello world", macosx_x64); + case.addError("", &[_][]const u8{":1:1: error: no entry point found"}); + } + { var case = ctx.exe("hello world", linux_riscv64); // Regular old hello world