authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-08-20 17:25:39+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-08-21 09:41:05+02:00
log243b5c7a889a3cbc86b5b0720b9ed1cdc6c29835
treebbb28bfa6aaec766fae7362ee6df1e1ea16856d9
parente0a38f7f3e2b3dc272cd9ab4f826315590664779

Add macosx end-to-end smoke test

This test case will grow as the linker gets more functionality. Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>

1 files changed, 10 insertions(+), 0 deletions(-)

test/stage2/test.zig+10
......@@ -8,6 +8,11 @@ const linux_x64 = std.zig.CrossTarget{
88 .os_tag = .linux,
99};
1010
11const macosx_x64 = std.zig.CrossTarget{
12 .cpu_arch = .x86_64,
13 .os_tag = .macosx,
14};
15
1116const linux_riscv64 = std.zig.CrossTarget{
1217 .cpu_arch = .riscv64,
1318 .os_tag = .linux,
......@@ -133,6 +138,11 @@ pub fn addCases(ctx: *TestContext) !void {
133138 );
134139 }
135140
141 {
142 var case = ctx.exe("hello world", macosx_x64);
143 case.addError("", &[_][]const u8{":1:1: error: no entry point found"});
144 }
145
136146 {
137147 var case = ctx.exe("hello world", linux_riscv64);
138148 // Regular old hello world