Commit 28e1d82857
Changed files (5)
test
test/behavior/align.zig
@@ -27,6 +27,7 @@ test "large alignment of local constant" {
test "slicing array of length 1 can not assume runtime index is always zero" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
var runtime_index: usize = 1;
_ = &runtime_index;
test/behavior/basic.zig
@@ -572,6 +572,8 @@ test "comptime cast fn to ptr" {
}
test "equality compare fn ptrs" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // Uses function pointers
+
var a = &emptyFn;
_ = &a;
try expect(a == a);
test/behavior/slice.zig
@@ -853,6 +853,7 @@ test "slice with dereferenced value" {
test "empty slice ptr is non null" {
if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // Test assumes `undefined` is non-zero
{
const empty_slice: []u8 = &[_]u8{};
test/behavior/struct.zig
@@ -1513,6 +1513,7 @@ test "discarded struct initialization works as expected" {
test "function pointer in struct returns the struct" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const A = struct {
const A = @This();
test/behavior/union.zig
@@ -1929,6 +1929,8 @@ test "inner struct initializer uses union layout" {
}
test "inner struct initializer uses packed union layout" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const namespace = struct {
const U = packed union {
a: packed struct {
@@ -1953,6 +1955,8 @@ test "inner struct initializer uses packed union layout" {
}
test "extern union initialized via reintepreted struct field initializer" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
const U = extern union {
@@ -1970,6 +1974,8 @@ test "extern union initialized via reintepreted struct field initializer" {
}
test "packed union initialized via reintepreted struct field initializer" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
const U = packed union {
@@ -1988,6 +1994,8 @@ test "packed union initialized via reintepreted struct field initializer" {
}
test "store of comptime reinterpreted memory to extern union" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
const U = extern union {
@@ -2008,6 +2016,8 @@ test "store of comptime reinterpreted memory to extern union" {
}
test "store of comptime reinterpreted memory to packed union" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd };
const U = packed union {
@@ -2063,6 +2073,8 @@ test "pass register-sized field as non-register-sized union" {
}
test "circular dependency through pointer field of a union" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const S = struct {
const UnionInner = extern struct {
outer: UnionOuter = std.mem.zeroes(UnionOuter),