Commit 243b5c7a88

Jakub Konka <kubkon@jakubkonka.com>
2020-08-20 17:25:39
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 parent e0a38f7
Changed files (1)
test
stage2
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