stage2: fix @sizeOf for structs with comptime fields

This commit is contained in:
Andrew Kelley
2022-05-04 18:45:59 -07:00
parent 2f6a01d0c3
commit af7e945a7d
4 changed files with 15 additions and 1 deletions

View File

@@ -55,6 +55,10 @@ test "alignment of struct with pointer has same alignment as usize" {
}
test "alignment and size of structs with 128-bit fields" {
if (builtin.zig_backend == .stage1) {
// stage1 gets the wrong answer for a lot of targets
return error.SkipZigTest;
}
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO