From 243b5c7a889a3cbc86b5b0720b9ed1cdc6c29835 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Thu, 20 Aug 2020 17:25:39 +0200 Subject: [PATCH] Add macosx end-to-end smoke test This test case will grow as the linker gets more functionality. Signed-off-by: Jakub Konka --- test/stage2/test.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) 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