aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bool.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/bool.zig
parente26d8d060410ff5f62356c41f3c782f8a9081495 (diff)
downloadzig-ccc490ef6876291ed3df5e945e7df913018c32af.tar.gz
zig-ccc490ef6876291ed3df5e945e7df913018c32af.zip
setup spirv backend in behavior tests
Diffstat (limited to 'test/behavior/bool.zig')
-rw-r--r--test/behavior/bool.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/behavior/bool.zig b/test/behavior/bool.zig
index a4e0ab499a..d216d72a05 100644
--- a/test/behavior/bool.zig
+++ b/test/behavior/bool.zig
@@ -1,4 +1,5 @@
const std = @import("std");
+const builtin = @import("builtin");
const expect = std.testing.expect;
test "bool literals" {
@@ -7,6 +8,8 @@ test "bool literals" {
}
test "cast bool to int" {
+ if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
+
const t = true;
const f = false;
try expect(@boolToInt(t) == @as(u32, 1));