test: skip tests that were not meant to pass for spirv

This commit is contained in:
Ali Cheraghi
2025-08-09 13:27:45 +03:30
parent bed99e1ecd
commit 64563e2fff
10 changed files with 38 additions and 0 deletions

View File

@@ -1088,6 +1088,8 @@ test "pass pointer to empty array initializer to anytype parameter" {
}
test "initialize pointer to anyopaque with reference to empty array initializer" {
if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
const ptr: *const anyopaque = &.{};
// The above acts like an untyped initializer, since the `.{}` has no result type.
// So, `ptr` points in memory to an empty tuple (`@TypeOf(.{})`).