setup spirv backend in behavior tests

This commit is contained in:
Ali Chraghi
2023-05-11 09:23:34 +03:30
committed by Robin Voetter
parent e26d8d0604
commit ccc490ef68
178 changed files with 1235 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ test "@src" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
try doTheTest();
}
@@ -33,6 +34,8 @@ test "@src used as a comptime parameter" {
}
test "@src in tuple passed to anytype function" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const S = struct {
fn Foo(a: anytype) u32 {
return a[0].line;