zig/test/behavior/bugs/12911.zig
2022-09-23 17:39:21 +03:00

12 lines
231 B
Zig

const builtin = @import("builtin");
const Item = struct { field: u8 };
const Thing = struct {
array: [1]Item,
};
test {
if (builtin.zig_backend == .stage1) return error.SkipZigTest;
_ = Thing{ .array = undefined };
}