mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
14 lines
219 B
Zig
14 lines
219 B
Zig
const builtin = @import("builtin");
|
|
|
|
test {
|
|
comptime var st = .{
|
|
.foo = &1,
|
|
.bar = &2,
|
|
};
|
|
_ = &st;
|
|
|
|
inline for (@typeInfo(@TypeOf(st)).Struct.fields) |field| {
|
|
_ = field;
|
|
}
|
|
}
|