diff options
| author | Ali Chraghi <alichraghi@proton.me> | 2023-05-11 09:23:34 +0330 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2023-05-11 20:31:52 +0200 |
| commit | ccc490ef6876291ed3df5e945e7df913018c32af (patch) | |
| tree | 6716f9e5019e686c9584fee43e83334e689716c9 /test/behavior/empty_union.zig | |
| parent | e26d8d060410ff5f62356c41f3c782f8a9081495 (diff) | |
| download | zig-ccc490ef6876291ed3df5e945e7df913018c32af.tar.gz zig-ccc490ef6876291ed3df5e945e7df913018c32af.zip | |
setup spirv backend in behavior tests
Diffstat (limited to 'test/behavior/empty_union.zig')
| -rw-r--r-- | test/behavior/empty_union.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/behavior/empty_union.zig b/test/behavior/empty_union.zig index c91fa16d0c..54ad52df63 100644 --- a/test/behavior/empty_union.zig +++ b/test/behavior/empty_union.zig @@ -12,6 +12,7 @@ test "switch on empty enum" { test "switch on empty enum with a specified tag type" { if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; const E = enum(u8) {}; var e: E = undefined; @@ -21,6 +22,7 @@ test "switch on empty enum with a specified tag type" { test "switch on empty auto numbered tagged union" { if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; const U = union(enum(u8)) {}; var u: U = undefined; @@ -50,6 +52,8 @@ test "empty extern union" { } test "empty union passed as argument" { + if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; + const U = union(enum) { fn f(u: @This()) void { switch (u) {} @@ -59,6 +63,8 @@ test "empty union passed as argument" { } test "empty enum passed as argument" { + if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; + const E = enum { fn f(e: @This()) void { switch (e) {} |
