mirror of
https://github.com/ziglang/zig.git
synced 2025-12-28 00:53:18 +00:00
15 lines
281 B
Zig
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;
|
|
}
|
|
}
|