aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/enum.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-07-01 14:30:32 +0200
committerRobin Voetter <robin@voetter.nl>2023-07-01 19:45:09 +0200
commit073289d0dadfd1ea0088837563a109100b065ed3 (patch)
tree0f418d7fd310b768ba343aa7778b528f7ec02135 /test/behavior/enum.zig
parentaa398034eb1b2fd74e1815ae2e75ca1a3ca4a567 (diff)
downloadzig-073289d0dadfd1ea0088837563a109100b065ed3.tar.gz
zig-073289d0dadfd1ea0088837563a109100b065ed3.zip
spirv: disable new behavior tests that do not pass
Some new behavior tests have recently been added, and not all of these pass with the SPIR-V backend.
Diffstat (limited to 'test/behavior/enum.zig')
-rw-r--r--test/behavior/enum.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/behavior/enum.zig b/test/behavior/enum.zig
index ffb254f765..a472dc87a4 100644
--- a/test/behavior/enum.zig
+++ b/test/behavior/enum.zig
@@ -1199,6 +1199,8 @@ test "enum tag from a local variable" {
}
test "auto-numbered enum with signed tag type" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const E = enum(i32) { a, b };
try std.testing.expectEqual(@as(i32, 0), @intFromEnum(E.a));