| ... | ... | @@ -8,6 +8,11 @@ const linux_x64 = std.zig.CrossTarget{ |
| 8 | 8 | .os_tag = .linux, |
| 9 | 9 | }; |
| 10 | 10 | |
| 11 | const macosx_x64 = std.zig.CrossTarget{ |
| 12 | .cpu_arch = .x86_64, |
| 13 | .os_tag = .macosx, |
| 14 | }; |
| 15 | |
| 11 | 16 | const linux_riscv64 = std.zig.CrossTarget{ |
| 12 | 17 | .cpu_arch = .riscv64, |
| 13 | 18 | .os_tag = .linux, |
| ... | ... | @@ -133,6 +138,11 @@ pub fn addCases(ctx: *TestContext) !void { |
| 133 | 138 | ); |
| 134 | 139 | } |
| 135 | 140 | |
| 141 | { |
| 142 | var case = ctx.exe("hello world", macosx_x64); |
| 143 | case.addError("", &[_][]const u8{":1:1: error: no entry point found"}); |
| 144 | } |
| 145 | |
| 136 | 146 | { |
| 137 | 147 | var case = ctx.exe("hello world", linux_riscv64); |
| 138 | 148 | // Regular old hello world |