diff options
| author | Robin Voetter <robin@voetter.nl> | 2024-01-13 18:44:44 +0100 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2024-02-04 19:09:33 +0100 |
| commit | 9fbba0e01a5e89ce4b4be940539b6b05a7fb3931 (patch) | |
| tree | 1d2fb941e27f7b6cfe7b541407b0971daf051d0e /test/behavior/struct.zig | |
| parent | 1d548aa2aab472f14013e67e29c6d898a7b31998 (diff) | |
| download | zig-9fbba0e01a5e89ce4b4be940539b6b05a7fb3931.tar.gz zig-9fbba0e01a5e89ce4b4be940539b6b05a7fb3931.zip | |
spirv: update tests
Diffstat (limited to 'test/behavior/struct.zig')
| -rw-r--r-- | test/behavior/struct.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index c74d6344dd..37d201288a 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -1744,8 +1744,6 @@ test "struct init with no result pointer sets field result types" { } test "runtime side-effects in comptime-known struct init" { - if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; - var side_effects: u4 = 0; const S = struct { a: u4, b: u4, c: u4, d: u4 }; const init = S{ @@ -2056,6 +2054,8 @@ test "struct field default value is a call" { } test "aggregate initializers should allow initializing comptime fields, verifying equality" { + if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; + var x: u32 = 15; _ = &x; const T = @TypeOf(.{ @as(i32, -1234), @as(u32, 5678), x }); |
