aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/array.zig
diff options
context:
space:
mode:
authorAli Cheraghi <alichraghi@proton.me>2025-08-09 13:27:45 +0330
committerAli Cheraghi <alichraghi@proton.me>2025-08-09 13:27:45 +0330
commit64563e2fffd0e304019c343a32f31c925be20ea2 (patch)
tree10e996625fab88c9a6231616e7ec1a6b5fb9e647 /test/behavior/array.zig
parentbed99e1ecd6c919f4c8a974e598302773db10b8a (diff)
downloadzig-64563e2fffd0e304019c343a32f31c925be20ea2.tar.gz
zig-64563e2fffd0e304019c343a32f31c925be20ea2.zip
test: skip tests that were not meant to pass for spirv
Diffstat (limited to 'test/behavior/array.zig')
-rw-r--r--test/behavior/array.zig2
1 files changed, 2 insertions, 0 deletions
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(.{})`).