| ... | ... | @@ -30,7 +30,6 @@ fn shouldBeNotEqual(a: anyerror, b: anyerror) void { |
| 30 | 30 | |
| 31 | 31 | test "error binary operator" { |
| 32 | 32 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 33 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 34 | 33 | |
| 35 | 34 | const a = errBinaryOperatorG(true) catch 3; |
| 36 | 35 | const b = errBinaryOperatorG(false) catch 3; |
| ... | ... | @@ -62,14 +61,12 @@ pub fn baz() anyerror!i32 { |
| 62 | 61 | |
| 63 | 62 | test "error wrapping" { |
| 64 | 63 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 65 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 66 | 64 | |
| 67 | 65 | try expect((baz() catch unreachable) == 15); |
| 68 | 66 | } |
| 69 | 67 | |
| 70 | 68 | test "unwrap simple value from error" { |
| 71 | 69 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 72 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 73 | 70 | |
| 74 | 71 | const i = unwrapSimpleValueFromErrorDo() catch unreachable; |
| 75 | 72 | try expect(i == 13); |
| ... | ... | @@ -80,7 +77,6 @@ fn unwrapSimpleValueFromErrorDo() anyerror!isize { |
| 80 | 77 | |
| 81 | 78 | test "error return in assignment" { |
| 82 | 79 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 83 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 84 | 80 | |
| 85 | 81 | doErrReturnInAssignment() catch unreachable; |
| 86 | 82 | } |
| ... | ... | @@ -103,7 +99,6 @@ test "syntax: optional operator in front of error union operator" { |
| 103 | 99 | test "widen cast integer payload of error union function call" { |
| 104 | 100 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 105 | 101 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 106 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 107 | 102 | |
| 108 | 103 | const S = struct { |
| 109 | 104 | fn errorable() !u64 { |
| ... | ... | @@ -150,7 +145,6 @@ test "implicit cast to optional to error union to return result loc" { |
| 150 | 145 | } |
| 151 | 146 | |
| 152 | 147 | test "fn returning empty error set can be passed as fn returning any error" { |
| 153 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 154 | 148 | entry(); |
| 155 | 149 | comptime entry(); |
| 156 | 150 | } |
| ... | ... | @@ -243,7 +237,6 @@ fn testExplicitErrorSetCast(set1: Set1) !void { |
| 243 | 237 | |
| 244 | 238 | test "comptime test error for empty error set" { |
| 245 | 239 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 246 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 247 | 240 | |
| 248 | 241 | try testComptimeTestErrorEmptySet(1234); |
| 249 | 242 | try comptime testComptimeTestErrorEmptySet(1234); |
| ... | ... | @@ -279,7 +272,6 @@ test "inferred empty error set comptime catch" { |
| 279 | 272 | } |
| 280 | 273 | |
| 281 | 274 | test "error inference with an empty set" { |
| 282 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 283 | 275 | const S = struct { |
| 284 | 276 | const Struct = struct { |
| 285 | 277 | pub fn func() (error{})!usize { |
| ... | ... | @@ -334,7 +326,6 @@ fn quux_1() !i32 { |
| 334 | 326 | |
| 335 | 327 | test "error: Zero sized error set returned with value payload crash" { |
| 336 | 328 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 337 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 338 | 329 | |
| 339 | 330 | _ = try foo3(0); |
| 340 | 331 | _ = try comptime foo3(0); |
| ... | ... | @@ -434,7 +425,6 @@ test "nested error union function call in optional unwrap" { |
| 434 | 425 | test "return function call to error set from error union function" { |
| 435 | 426 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 436 | 427 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 437 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 438 | 428 | |
| 439 | 429 | const S = struct { |
| 440 | 430 | fn errorable() anyerror!i32 { |
| ... | ... | @@ -670,7 +660,6 @@ test "peer type resolution of two different error unions" { |
| 670 | 660 | } |
| 671 | 661 | |
| 672 | 662 | test "coerce error set to the current inferred error set" { |
| 673 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 674 | 663 | const S = struct { |
| 675 | 664 | fn foo() !void { |
| 676 | 665 | var a = false; |
| ... | ... | @@ -862,8 +851,6 @@ fn non_errorable() void { |
| 862 | 851 | } |
| 863 | 852 | |
| 864 | 853 | test "catch within a function that calls no errorable functions" { |
| 865 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 866 | | |
| 867 | 854 | non_errorable(); |
| 868 | 855 | } |
| 869 | 856 | |
| ... | ... | @@ -895,7 +882,6 @@ test "field access of anyerror results in smaller error set" { |
| 895 | 882 | test "optional error union return type" { |
| 896 | 883 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 897 | 884 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 898 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 899 | 885 | |
| 900 | 886 | const S = struct { |
| 901 | 887 | fn foo() ?anyerror!u32 { |