aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/struct.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-07-28 21:03:10 +0300
committerVeikka Tuominen <git@vexu.eu>2022-08-01 23:59:40 +0300
commite47706f34454c46dd00fe10fdf9252657117a00d (patch)
treeef7ab64fbe9d3123004b3fe94781bfcabc8325fa /test/behavior/struct.zig
parentf1768b40b2468d63355c8cf83d3614ae23a54317 (diff)
downloadzig-e47706f34454c46dd00fe10fdf9252657117a00d.tar.gz
zig-e47706f34454c46dd00fe10fdf9252657117a00d.zip
Sema: validate packed struct field types
Diffstat (limited to 'test/behavior/struct.zig')
-rw-r--r--test/behavior/struct.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig
index 8fac5697ec..377cbb56f4 100644
--- a/test/behavior/struct.zig
+++ b/test/behavior/struct.zig
@@ -704,10 +704,8 @@ const FooArray24Bits = packed struct {
};
test "aligned array of packed struct" {
- if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
+ // Stage2 has different packed struct semantics.
+ if (builtin.zig_backend != .stage1) return error.SkipZigTest;
comptime {
try expect(@sizeOf(FooStructAligned) == 2);