aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/pub_enum.zig
diff options
context:
space:
mode:
authorAli Chraghi <alichraghi@proton.me>2023-05-11 09:23:34 +0330
committerRobin Voetter <robin@voetter.nl>2023-05-11 20:31:52 +0200
commitccc490ef6876291ed3df5e945e7df913018c32af (patch)
tree6716f9e5019e686c9584fee43e83334e689716c9 /test/behavior/pub_enum.zig
parente26d8d060410ff5f62356c41f3c782f8a9081495 (diff)
downloadzig-ccc490ef6876291ed3df5e945e7df913018c32af.tar.gz
zig-ccc490ef6876291ed3df5e945e7df913018c32af.zip
setup spirv backend in behavior tests
Diffstat (limited to 'test/behavior/pub_enum.zig')
-rw-r--r--test/behavior/pub_enum.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/behavior/pub_enum.zig b/test/behavior/pub_enum.zig
index d2e887b12e..672d097250 100644
--- a/test/behavior/pub_enum.zig
+++ b/test/behavior/pub_enum.zig
@@ -1,7 +1,10 @@
+const builtin = @import("builtin");
const other = @import("pub_enum/other.zig");
const expect = @import("std").testing.expect;
test "pub enum" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
try pubEnumTest(other.APubEnum.Two);
}
fn pubEnumTest(foo: other.APubEnum) !void {