| author | |
| committer | |
| log | 47a2437afb3c392771eed8a26aac1bb3c84963af |
| tree | 8daad85ff089790a9e302dc4d6efaa31dde61644 |
| parent | 03d537b3035dae0c3ed73d24a50ecd42bd44523c |
| signature | Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM |
We have stripped variants in the module test matrix, and I don't think the test
code here provides useful coverage on its own.3 files changed, 0 insertions(+), 45 deletions(-)
test/standalone/build.zig.zon-3| ... | @@ -129,9 +129,6 @@ | ... | @@ -129,9 +129,6 @@ |
| 129 | .issue_12706 = .{ | 129 | .issue_12706 = .{ |
| 130 | .path = "issue_12706", | 130 | .path = "issue_12706", |
| 131 | }, | 131 | }, |
| 132 | .strip_struct_init = .{ | ||
| 133 | .path = "strip_struct_init", | ||
| 134 | }, | ||
| 135 | .coff_dwarf = .{ | 132 | .coff_dwarf = .{ |
| 136 | .path = "coff_dwarf", | 133 | .path = "coff_dwarf", |
| 137 | }, | 134 | }, |
test/standalone/strip_struct_init/build.zig deleted-19| ... | @@ -1,19 +0,0 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | |||
| 3 | pub fn build(b: *std.Build) void { | ||
| 4 | const test_step = b.step("test", "Test it"); | ||
| 5 | b.default_step = test_step; | ||
| 6 | |||
| 7 | const optimize: std.builtin.Optimize = .debug; | ||
| 8 | |||
| 9 | const main = b.addTest(.{ | ||
| 10 | .root_module = b.createModule(.{ | ||
| 11 | .root_source_file = b.path("main.zig"), | ||
| 12 | .target = b.graph.host, | ||
| 13 | .optimize = optimize, | ||
| 14 | .strip = true, | ||
| 15 | }), | ||
| 16 | }); | ||
| 17 | |||
| 18 | test_step.dependOn(&b.addRunArtifact(main).step); | ||
| 19 | } | ||
test/standalone/strip_struct_init/main.zig deleted-23| ... | @@ -1,23 +0,0 @@ | ||
| 1 | fn Func(comptime Type: type) type { | ||
| 2 | return struct { value: Type }; | ||
| 3 | } | ||
| 4 | |||
| 5 | inline fn func(value: anytype) Func(@TypeOf(value)) { | ||
| 6 | return .{ .value = value }; | ||
| 7 | } | ||
| 8 | |||
| 9 | test { | ||
| 10 | _ = func(type); | ||
| 11 | } | ||
| 12 | |||
| 13 | test { | ||
| 14 | const S = struct { field: u32 }; | ||
| 15 | comptime var arr: [1]S = undefined; | ||
| 16 | arr[0] = .{ .field = 0 }; | ||
| 17 | } | ||
| 18 | |||
| 19 | test { | ||
| 20 | const S = struct { u32 }; | ||
| 21 | comptime var arr: [1]S = undefined; | ||
| 22 | arr[0] = .{0}; | ||
| 23 | } | ||