aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/struct.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behavior/struct.zig')
-rw-r--r--test/behavior/struct.zig4
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 });