authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-09 08:33:25+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-10 08:36:07+02:00
log47a2437afb3c392771eed8a26aac1bb3c84963af
tree8daad85ff089790a9e302dc4d6efaa31dde61644
parent03d537b3035dae0c3ed73d24a50ecd42bd44523c
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test-standalone: remove strip_struct_init

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 @@
129129 .issue_12706 = .{
130130 .path = "issue_12706",
131131 },
132 .strip_struct_init = .{
133 .path = "strip_struct_init",
134 },
135132 .coff_dwarf = .{
136133 .path = "coff_dwarf",
137134 },
test/standalone/strip_struct_init/build.zig deleted-19
......@@ -1,19 +0,0 @@
1const std = @import("std");
2
3pub 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 @@
1fn Func(comptime Type: type) type {
2 return struct { value: Type };
3}
4
5inline fn func(value: anytype) Func(@TypeOf(value)) {
6 return .{ .value = value };
7}
8
9test {
10 _ = func(type);
11}
12
13test {
14 const S = struct { field: u32 };
15 comptime var arr: [1]S = undefined;
16 arr[0] = .{ .field = 0 };
17}
18
19test {
20 const S = struct { u32 };
21 comptime var arr: [1]S = undefined;
22 arr[0] = .{0};
23}