zig/test/behavior/bugs/12025.zig
2023-05-11 20:31:52 +02:00

15 lines
281 B
Zig

const builtin = @import("builtin");
test {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
comptime var st = .{
.foo = &1,
.bar = &2,
};
inline for (@typeInfo(@TypeOf(st)).Struct.fields) |field| {
_ = field;
}
}