| author | |
| committer | |
| log | 780f0b872a964fe4a411a603b733a3d39700ec1c |
| tree | fed5f2623483da0d70c952e92c6618194b22b372 |
| parent | 59284a1085a6ce77c7e582d344ee37c20f85ae9f |
3 files changed, 28 insertions(+), 0 deletions(-)
test/link.zig+4| ... | ... | @@ -92,6 +92,10 @@ pub const cases = [_]Case{ |
| 92 | 92 | .build_root = "test/link/macho/bugs/13457", |
| 93 | 93 | .import = @import("link/macho/bugs/13457/build.zig"), |
| 94 | 94 | }, |
| 95 | .{ | |
| 96 | .build_root = "test/link/macho/bugs/16308", | |
| 97 | .import = @import("link/macho/bugs/16308/build.zig"), | |
| 98 | }, | |
| 95 | 99 | .{ |
| 96 | 100 | .build_root = "test/link/macho/dead_strip", |
| 97 | 101 | .import = @import("link/macho/dead_strip/build.zig"), |
test/link/macho/bugs/16308/build.zig created+23| ... | ... | @@ -0,0 +1,23 @@ |
| 1 | const std = @import("std"); | |
| 2 | ||
| 3 | pub const requires_symlinks = true; | |
| 4 | ||
| 5 | pub fn build(b: *std.Build) void { | |
| 6 | const test_step = b.step("test", "Test it"); | |
| 7 | b.default_step = test_step; | |
| 8 | ||
| 9 | const target: std.zig.CrossTarget = .{ .os_tag = .macos }; | |
| 10 | ||
| 11 | const lib = b.addSharedLibrary(.{ | |
| 12 | .name = "a", | |
| 13 | .root_source_file = .{ .path = "main.zig" }, | |
| 14 | .optimize = .Debug, | |
| 15 | .target = target, | |
| 16 | }); | |
| 17 | ||
| 18 | const check = lib.checkObject(); | |
| 19 | check.checkInSymtab(); | |
| 20 | check.checkNotPresent("external"); | |
| 21 | ||
| 22 | test_step.dependOn(&check.step); | |
| 23 | } |
test/link/macho/bugs/16308/main.zig created+1| ... | ... | @@ -0,0 +1 @@ |
| 1 | fn abc() void {} |