From 64563e2fffd0e304019c343a32f31c925be20ea2 Mon Sep 17 00:00:00 2001 From: Ali Cheraghi Date: Sat, 9 Aug 2025 13:27:45 +0330 Subject: test: skip tests that were not meant to pass for spirv --- test/behavior/array.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/behavior/array.zig') diff --git a/test/behavior/array.zig b/test/behavior/array.zig index 1eb4c12cbf..2e776d4653 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -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(.{})`). -- cgit v1.2.3