| author | |
| committer | |
| log | 9fbba0e01a5e89ce4b4be940539b6b05a7fb3931 |
| tree | 1d2fb941e27f7b6cfe7b541407b0971daf051d0e |
| parent | 1d548aa2aab472f14013e67e29c6d898a7b31998 |
| signature |
27 files changed, 52 insertions(+), 26 deletions(-)
test/behavior/align.zig+3-4| ... | @@ -18,7 +18,6 @@ test "global variable alignment" { | ... | @@ -18,7 +18,6 @@ test "global variable alignment" { |
| 18 | test "large alignment of local constant" { | 18 | test "large alignment of local constant" { |
| 19 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 19 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 20 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 20 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 21 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // flaky | ||
| 22 | 21 | ||
| 23 | const x: f32 align(128) = 12.34; | 22 | const x: f32 align(128) = 12.34; |
| 24 | try std.testing.expect(@intFromPtr(&x) % 128 == 0); | 23 | try std.testing.expect(@intFromPtr(&x) % 128 == 0); |
| ... | @@ -27,7 +26,7 @@ test "large alignment of local constant" { | ... | @@ -27,7 +26,7 @@ test "large alignment of local constant" { |
| 27 | test "slicing array of length 1 can not assume runtime index is always zero" { | 26 | test "slicing array of length 1 can not assume runtime index is always zero" { |
| 28 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 27 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 29 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 28 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 30 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | 29 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // flaky |
| 31 | 30 | ||
| 32 | var runtime_index: usize = 1; | 31 | var runtime_index: usize = 1; |
| 33 | _ = &runtime_index; | 32 | _ = &runtime_index; |
| ... | @@ -512,7 +511,7 @@ test "struct field explicit alignment" { | ... | @@ -512,7 +511,7 @@ test "struct field explicit alignment" { |
| 512 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 511 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 513 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 512 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 514 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 513 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 515 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | 514 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // flaky |
| 516 | 515 | ||
| 517 | const S = struct { | 516 | const S = struct { |
| 518 | const Node = struct { | 517 | const Node = struct { |
| ... | @@ -581,7 +580,7 @@ test "comptime alloc alignment" { | ... | @@ -581,7 +580,7 @@ test "comptime alloc alignment" { |
| 581 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 580 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 582 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 581 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 583 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 582 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 584 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | 583 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // flaky |
| 585 | if (builtin.zig_backend == .stage2_llvm and builtin.target.cpu.arch == .x86) { | 584 | if (builtin.zig_backend == .stage2_llvm and builtin.target.cpu.arch == .x86) { |
| 586 | // https://github.com/ziglang/zig/issues/18034 | 585 | // https://github.com/ziglang/zig/issues/18034 |
| 587 | return error.SkipZigTest; | 586 | return error.SkipZigTest; |
test/behavior/array.zig-2| ... | @@ -768,8 +768,6 @@ test "array init with no result pointer sets field result types" { | ... | @@ -768,8 +768,6 @@ test "array init with no result pointer sets field result types" { |
| 768 | } | 768 | } |
| 769 | 769 | ||
| 770 | test "runtime side-effects in comptime-known array init" { | 770 | test "runtime side-effects in comptime-known array init" { |
| 771 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 772 | |||
| 773 | var side_effects: u4 = 0; | 771 | var side_effects: u4 = 0; |
| 774 | const init = [4]u4{ | 772 | const init = [4]u4{ |
| 775 | blk: { | 773 | blk: { |
test/behavior/basic.zig+1| ... | @@ -1222,6 +1222,7 @@ test "integer compare" { | ... | @@ -1222,6 +1222,7 @@ test "integer compare" { |
| 1222 | 1222 | ||
| 1223 | test "reference to inferred local variable works as expected" { | 1223 | test "reference to inferred local variable works as expected" { |
| 1224 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1224 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1225 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 1225 | 1226 | ||
| 1226 | const Crasher = struct { | 1227 | const Crasher = struct { |
| 1227 | lets_crash: u64 = 0, | 1228 | lets_crash: u64 = 0, |
test/behavior/builtin_functions_returning_void_or_noreturn.zig+1| ... | @@ -11,6 +11,7 @@ test { | ... | @@ -11,6 +11,7 @@ test { |
| 11 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 11 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 12 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 12 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 13 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO | 13 | if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; // TODO |
| 14 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 14 | 15 | ||
| 15 | var val: u8 = undefined; | 16 | var val: u8 = undefined; |
| 16 | try testing.expectEqual({}, @atomicStore(u8, &val, 0, .Unordered)); | 17 | try testing.expectEqual({}, @atomicStore(u8, &val, 0, .Unordered)); |
test/behavior/cast.zig+1-6| ... | @@ -759,6 +759,7 @@ test "peer type resolution: error union and error set" { | ... | @@ -759,6 +759,7 @@ test "peer type resolution: error union and error set" { |
| 759 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 759 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 760 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 760 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 761 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 761 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 762 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 762 | 763 | ||
| 763 | const a: error{Three} = undefined; | 764 | const a: error{Three} = undefined; |
| 764 | const b: error{ One, Two }!u32 = undefined; | 765 | const b: error{ One, Two }!u32 = undefined; |
| ... | @@ -1730,7 +1731,6 @@ test "peer type resolution: array with smaller child type and vector with larger | ... | @@ -1730,7 +1731,6 @@ test "peer type resolution: array with smaller child type and vector with larger |
| 1730 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 1731 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1731 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | 1732 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| 1732 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1733 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1733 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO | ||
| 1734 | 1734 | ||
| 1735 | var arr: [2]u8 = .{ 0, 1 }; | 1735 | var arr: [2]u8 = .{ 0, 1 }; |
| 1736 | var vec: @Vector(2, u64) = .{ 2, 3 }; | 1736 | var vec: @Vector(2, u64) = .{ 2, 3 }; |
| ... | @@ -2318,7 +2318,6 @@ test "@floatCast on vector" { | ... | @@ -2318,7 +2318,6 @@ test "@floatCast on vector" { |
| 2318 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 2318 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 2319 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 2319 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 2320 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 2320 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 2321 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2322 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest; | 2321 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest; |
| 2323 | 2322 | ||
| 2324 | const S = struct { | 2323 | const S = struct { |
| ... | @@ -2339,7 +2338,6 @@ test "@ptrFromInt on vector" { | ... | @@ -2339,7 +2338,6 @@ test "@ptrFromInt on vector" { |
| 2339 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 2338 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 2340 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 2339 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 2341 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 2340 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 2342 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2343 | 2341 | ||
| 2344 | const S = struct { | 2342 | const S = struct { |
| 2345 | fn doTheTest() !void { | 2343 | fn doTheTest() !void { |
| ... | @@ -2363,7 +2361,6 @@ test "@intFromPtr on vector" { | ... | @@ -2363,7 +2361,6 @@ test "@intFromPtr on vector" { |
| 2363 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 2361 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 2364 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 2362 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 2365 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 2363 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 2366 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2367 | 2364 | ||
| 2368 | const S = struct { | 2365 | const S = struct { |
| 2369 | fn doTheTest() !void { | 2366 | fn doTheTest() !void { |
| ... | @@ -2387,7 +2384,6 @@ test "@floatFromInt on vector" { | ... | @@ -2387,7 +2384,6 @@ test "@floatFromInt on vector" { |
| 2387 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 2384 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 2388 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 2385 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 2389 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 2386 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 2390 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2391 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest; | 2387 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest; |
| 2392 | 2388 | ||
| 2393 | const S = struct { | 2389 | const S = struct { |
| ... | @@ -2408,7 +2404,6 @@ test "@intFromFloat on vector" { | ... | @@ -2408,7 +2404,6 @@ test "@intFromFloat on vector" { |
| 2408 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 2404 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 2409 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 2405 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 2410 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 2406 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 2411 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2412 | 2407 | ||
| 2413 | const S = struct { | 2408 | const S = struct { |
| 2414 | fn doTheTest() !void { | 2409 | fn doTheTest() !void { |
test/behavior/destructure.zig+1| ... | @@ -1,4 +1,5 @@ | ... | @@ -1,4 +1,5 @@ |
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const builtin = @import("builtin"); | ||
| 2 | const assert = std.debug.assert; | 3 | const assert = std.debug.assert; |
| 3 | const expect = std.testing.expect; | 4 | const expect = std.testing.expect; |
| 4 | 5 |
test/behavior/duplicated_test_names.zig+2| ... | @@ -15,5 +15,7 @@ comptime { | ... | @@ -15,5 +15,7 @@ comptime { |
| 15 | test "thingy" {} | 15 | test "thingy" {} |
| 16 | 16 | ||
| 17 | test thingy { | 17 | test thingy { |
| 18 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 19 | |||
| 18 | if (thingy(1, 2) != 3) unreachable; | 20 | if (thingy(1, 2) != 3) unreachable; |
| 19 | } | 21 | } |
test/behavior/eval.zig-1| ... | @@ -489,7 +489,6 @@ test "comptime bitwise operators" { | ... | @@ -489,7 +489,6 @@ test "comptime bitwise operators" { |
| 489 | 489 | ||
| 490 | test "comptime shlWithOverflow" { | 490 | test "comptime shlWithOverflow" { |
| 491 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 491 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 492 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 493 | 492 | ||
| 494 | const ct_shifted = @shlWithOverflow(~@as(u64, 0), 16)[0]; | 493 | const ct_shifted = @shlWithOverflow(~@as(u64, 0), 16)[0]; |
| 495 | var a = ~@as(u64, 0); | 494 | var a = ~@as(u64, 0); |
test/behavior/export_builtin.zig-3| ... | @@ -6,7 +6,6 @@ test "exporting enum type and value" { | ... | @@ -6,7 +6,6 @@ test "exporting enum type and value" { |
| 6 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 6 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 7 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 7 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 8 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 8 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 9 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 10 | 9 | ||
| 11 | const S = struct { | 10 | const S = struct { |
| 12 | const E = enum(c_int) { one, two }; | 11 | const E = enum(c_int) { one, two }; |
| ... | @@ -22,7 +21,6 @@ test "exporting with internal linkage" { | ... | @@ -22,7 +21,6 @@ test "exporting with internal linkage" { |
| 22 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 21 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 23 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 22 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 24 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 23 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 25 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 26 | 24 | ||
| 27 | const S = struct { | 25 | const S = struct { |
| 28 | fn foo() callconv(.C) void {} | 26 | fn foo() callconv(.C) void {} |
| ... | @@ -37,7 +35,6 @@ test "exporting using field access" { | ... | @@ -37,7 +35,6 @@ test "exporting using field access" { |
| 37 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 35 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 38 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 36 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 39 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 37 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 40 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 41 | 38 | ||
| 42 | const S = struct { | 39 | const S = struct { |
| 43 | const Inner = struct { | 40 | const Inner = struct { |
test/behavior/export_keyword.zig+1| ... | @@ -23,6 +23,7 @@ const PackedUnion = packed union { | ... | @@ -23,6 +23,7 @@ const PackedUnion = packed union { |
| 23 | 23 | ||
| 24 | test "packed struct, enum, union parameters in extern function" { | 24 | test "packed struct, enum, union parameters in extern function" { |
| 25 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 25 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 26 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 26 | 27 | ||
| 27 | testPackedStuff(&(PackedStruct{ | 28 | testPackedStuff(&(PackedStruct{ |
| 28 | .a = 1, | 29 | .a = 1, |
test/behavior/extern.zig+2| ... | @@ -5,6 +5,7 @@ const expect = std.testing.expect; | ... | @@ -5,6 +5,7 @@ const expect = std.testing.expect; |
| 5 | test "anyopaque extern symbol" { | 5 | test "anyopaque extern symbol" { |
| 6 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 6 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 7 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 7 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 8 | 9 | ||
| 9 | const a = @extern(*anyopaque, .{ .name = "a_mystery_symbol" }); | 10 | const a = @extern(*anyopaque, .{ .name = "a_mystery_symbol" }); |
| 10 | const b: *i32 = @alignCast(@ptrCast(a)); | 11 | const b: *i32 = @alignCast(@ptrCast(a)); |
| ... | @@ -17,6 +18,7 @@ test "function extern symbol" { | ... | @@ -17,6 +18,7 @@ test "function extern symbol" { |
| 17 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 18 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 18 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 19 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 19 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest; | 20 | if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf) return error.SkipZigTest; |
| 21 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 20 | 22 | ||
| 21 | const a = @extern(*const fn () callconv(.C) i32, .{ .name = "a_mystery_function" }); | 23 | const a = @extern(*const fn () callconv(.C) i32, .{ .name = "a_mystery_function" }); |
| 22 | try expect(a() == 4567); | 24 | try expect(a() == 4567); |
test/behavior/for.zig+1| ... | @@ -456,6 +456,7 @@ test "inline for on tuple pointer" { | ... | @@ -456,6 +456,7 @@ test "inline for on tuple pointer" { |
| 456 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 456 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 457 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 457 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 458 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 458 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 459 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 459 | 460 | ||
| 460 | const S = struct { u32, u32, u32 }; | 461 | const S = struct { u32, u32, u32 }; |
| 461 | var s: S = .{ 100, 200, 300 }; | 462 | var s: S = .{ 100, 200, 300 }; |
test/behavior/globals.zig-2| ... | @@ -8,7 +8,6 @@ test "store to global array" { | ... | @@ -8,7 +8,6 @@ test "store to global array" { |
| 8 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 8 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 9 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 9 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 10 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 10 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 11 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 12 | 11 | ||
| 13 | try expect(pos[1] == 0.0); | 12 | try expect(pos[1] == 0.0); |
| 14 | pos = [2]f32{ 0.0, 1.0 }; | 13 | pos = [2]f32{ 0.0, 1.0 }; |
| ... | @@ -21,7 +20,6 @@ test "store to global vector" { | ... | @@ -21,7 +20,6 @@ test "store to global vector" { |
| 21 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 20 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 22 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 21 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 23 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 22 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 24 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 25 | 23 | ||
| 26 | try expect(vpos[1] == 0.0); | 24 | try expect(vpos[1] == 0.0); |
| 27 | vpos = @Vector(2, f32){ 0.0, 1.0 }; | 25 | vpos = @Vector(2, f32){ 0.0, 1.0 }; |
test/behavior/hasdecl.zig+5| ... | @@ -1,4 +1,5 @@ | ... | @@ -1,4 +1,5 @@ |
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const builtin = @import("builtin"); | ||
| 2 | const expect = std.testing.expect; | 3 | const expect = std.testing.expect; |
| 3 | 4 | ||
| 4 | const Foo = @import("hasdecl/foo.zig"); | 5 | const Foo = @import("hasdecl/foo.zig"); |
| ... | @@ -11,6 +12,8 @@ const Bar = struct { | ... | @@ -11,6 +12,8 @@ const Bar = struct { |
| 11 | }; | 12 | }; |
| 12 | 13 | ||
| 13 | test "@hasDecl" { | 14 | test "@hasDecl" { |
| 15 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 16 | |||
| 14 | try expect(@hasDecl(Foo, "public_thing")); | 17 | try expect(@hasDecl(Foo, "public_thing")); |
| 15 | try expect(!@hasDecl(Foo, "private_thing")); | 18 | try expect(!@hasDecl(Foo, "private_thing")); |
| 16 | try expect(!@hasDecl(Foo, "no_thing")); | 19 | try expect(!@hasDecl(Foo, "no_thing")); |
| ... | @@ -21,6 +24,8 @@ test "@hasDecl" { | ... | @@ -21,6 +24,8 @@ test "@hasDecl" { |
| 21 | } | 24 | } |
| 22 | 25 | ||
| 23 | test "@hasDecl using a sliced string literal" { | 26 | test "@hasDecl using a sliced string literal" { |
| 27 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 28 | |||
| 24 | try expect(@hasDecl(@This(), "std") == true); | 29 | try expect(@hasDecl(@This(), "std") == true); |
| 25 | try expect(@hasDecl(@This(), "std"[0..0]) == false); | 30 | try expect(@hasDecl(@This(), "std"[0..0]) == false); |
| 26 | try expect(@hasDecl(@This(), "std"[0..1]) == false); | 31 | try expect(@hasDecl(@This(), "std"[0..1]) == false); |
test/behavior/import.zig+9| ... | @@ -1,17 +1,24 @@ | ... | @@ -1,17 +1,24 @@ |
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const builtin = @import("builtin"); | ||
| 2 | const expect = std.testing.expect; | 3 | const expect = std.testing.expect; |
| 3 | const expectEqual = std.testing.expectEqual; | 4 | const expectEqual = std.testing.expectEqual; |
| 4 | const a_namespace = @import("import/a_namespace.zig"); | 5 | const a_namespace = @import("import/a_namespace.zig"); |
| 5 | 6 | ||
| 6 | test "call fn via namespace lookup" { | 7 | test "call fn via namespace lookup" { |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | |||
| 7 | try expect(@as(i32, 1234) == a_namespace.foo()); | 10 | try expect(@as(i32, 1234) == a_namespace.foo()); |
| 8 | } | 11 | } |
| 9 | 12 | ||
| 10 | test "importing the same thing gives the same import" { | 13 | test "importing the same thing gives the same import" { |
| 14 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 15 | |||
| 11 | try expect(@import("std") == @import("std")); | 16 | try expect(@import("std") == @import("std")); |
| 12 | } | 17 | } |
| 13 | 18 | ||
| 14 | test "import in non-toplevel scope" { | 19 | test "import in non-toplevel scope" { |
| 20 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 21 | |||
| 15 | const S = struct { | 22 | const S = struct { |
| 16 | usingnamespace @import("import/a_namespace.zig"); | 23 | usingnamespace @import("import/a_namespace.zig"); |
| 17 | }; | 24 | }; |
| ... | @@ -19,5 +26,7 @@ test "import in non-toplevel scope" { | ... | @@ -19,5 +26,7 @@ test "import in non-toplevel scope" { |
| 19 | } | 26 | } |
| 20 | 27 | ||
| 21 | test "import empty file" { | 28 | test "import empty file" { |
| 29 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 30 | |||
| 22 | _ = @import("import/empty.zig"); | 31 | _ = @import("import/empty.zig"); |
| 23 | } | 32 | } |
test/behavior/int_div.zig+2| ... | @@ -6,6 +6,7 @@ test "integer division" { | ... | @@ -6,6 +6,7 @@ test "integer division" { |
| 6 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 6 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 7 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 7 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 8 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 8 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 9 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | 10 | ||
| 10 | try testDivision(); | 11 | try testDivision(); |
| 11 | try comptime testDivision(); | 12 | try comptime testDivision(); |
| ... | @@ -96,6 +97,7 @@ test "large integer division" { | ... | @@ -96,6 +97,7 @@ test "large integer division" { |
| 96 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 97 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 97 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; | 98 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; |
| 98 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 99 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 100 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 99 | 101 | ||
| 100 | { | 102 | { |
| 101 | var numerator: u256 = 99999999999999999997315645440; | 103 | var numerator: u256 = 99999999999999999997315645440; |
test/behavior/math.zig-3| ... | @@ -602,7 +602,6 @@ fn testUnsignedNegationWrappingEval(x: u16) !void { | ... | @@ -602,7 +602,6 @@ fn testUnsignedNegationWrappingEval(x: u16) !void { |
| 602 | test "negation wrapping" { | 602 | test "negation wrapping" { |
| 603 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 603 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 604 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 604 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 605 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 606 | 605 | ||
| 607 | try expectEqual(@as(u1, 1), negateWrap(u1, 1)); | 606 | try expectEqual(@as(u1, 1), negateWrap(u1, 1)); |
| 608 | } | 607 | } |
| ... | @@ -770,7 +769,6 @@ test "@addWithOverflow" { | ... | @@ -770,7 +769,6 @@ test "@addWithOverflow" { |
| 770 | test "small int addition" { | 769 | test "small int addition" { |
| 771 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 770 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 772 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 771 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 773 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 774 | 772 | ||
| 775 | var x: u2 = 0; | 773 | var x: u2 = 0; |
| 776 | try expect(x == 0); | 774 | try expect(x == 0); |
| ... | @@ -1564,7 +1562,6 @@ test "vector integer addition" { | ... | @@ -1564,7 +1562,6 @@ test "vector integer addition" { |
| 1564 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 1562 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 1565 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | 1563 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 1566 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1564 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1567 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 1568 | 1565 | ||
| 1569 | const S = struct { | 1566 | const S = struct { |
| 1570 | fn doTheTest() !void { | 1567 | fn doTheTest() !void { |
test/behavior/namespace_depends_on_compile_var.zig+2| ... | @@ -3,6 +3,8 @@ const builtin = @import("builtin"); | ... | @@ -3,6 +3,8 @@ const builtin = @import("builtin"); |
| 3 | const expect = std.testing.expect; | 3 | const expect = std.testing.expect; |
| 4 | 4 | ||
| 5 | test "namespace depends on compile var" { | 5 | test "namespace depends on compile var" { |
| 6 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 7 | |||
| 6 | if (some_namespace.a_bool) { | 8 | if (some_namespace.a_bool) { |
| 7 | try expect(some_namespace.a_bool); | 9 | try expect(some_namespace.a_bool); |
| 8 | } else { | 10 | } else { |
test/behavior/optional.zig+1| ... | @@ -451,6 +451,7 @@ test "Optional slice passed to function" { | ... | @@ -451,6 +451,7 @@ test "Optional slice passed to function" { |
| 451 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 451 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 452 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 452 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 453 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 453 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 454 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 454 | 455 | ||
| 455 | const S = struct { | 456 | const S = struct { |
| 456 | fn foo(a: ?[]const u8) !void { | 457 | fn foo(a: ?[]const u8) !void { |
test/behavior/pub_enum.zig+4| ... | @@ -3,6 +3,8 @@ const other = @import("pub_enum/other.zig"); | ... | @@ -3,6 +3,8 @@ const other = @import("pub_enum/other.zig"); |
| 3 | const expect = @import("std").testing.expect; | 3 | const expect = @import("std").testing.expect; |
| 4 | 4 | ||
| 5 | test "pub enum" { | 5 | test "pub enum" { |
| 6 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 7 | |||
| 6 | try pubEnumTest(other.APubEnum.Two); | 8 | try pubEnumTest(other.APubEnum.Two); |
| 7 | } | 9 | } |
| 8 | fn pubEnumTest(foo: other.APubEnum) !void { | 10 | fn pubEnumTest(foo: other.APubEnum) !void { |
| ... | @@ -10,5 +12,7 @@ fn pubEnumTest(foo: other.APubEnum) !void { | ... | @@ -10,5 +12,7 @@ fn pubEnumTest(foo: other.APubEnum) !void { |
| 10 | } | 12 | } |
| 11 | 13 | ||
| 12 | test "cast with imported symbol" { | 14 | test "cast with imported symbol" { |
| 15 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 16 | |||
| 13 | try expect(@as(other.size_t, 42) == 42); | 17 | try expect(@as(other.size_t, 42) == 42); |
| 14 | } | 18 | } |
test/behavior/slice_sentinel_comptime.zig+2| ... | @@ -1,3 +1,5 @@ | ... | @@ -1,3 +1,5 @@ |
| 1 | const builtin = @import("builtin"); | ||
| 2 | |||
| 1 | test "comptime slice-sentinel in bounds (unterminated)" { | 3 | test "comptime slice-sentinel in bounds (unterminated)" { |
| 2 | // array | 4 | // array |
| 3 | comptime { | 5 | comptime { |
test/behavior/struct.zig+2-2| ... | @@ -1744,8 +1744,6 @@ test "struct init with no result pointer sets field result types" { | ... | @@ -1744,8 +1744,6 @@ test "struct init with no result pointer sets field result types" { |
| 1744 | } | 1744 | } |
| 1745 | 1745 | ||
| 1746 | test "runtime side-effects in comptime-known struct init" { | 1746 | test "runtime side-effects in comptime-known struct init" { |
| 1747 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 1748 | |||
| 1749 | var side_effects: u4 = 0; | 1747 | var side_effects: u4 = 0; |
| 1750 | const S = struct { a: u4, b: u4, c: u4, d: u4 }; | 1748 | const S = struct { a: u4, b: u4, c: u4, d: u4 }; |
| 1751 | const init = S{ | 1749 | const init = S{ |
| ... | @@ -2056,6 +2054,8 @@ test "struct field default value is a call" { | ... | @@ -2056,6 +2054,8 @@ test "struct field default value is a call" { |
| 2056 | } | 2054 | } |
| 2057 | 2055 | ||
| 2058 | test "aggregate initializers should allow initializing comptime fields, verifying equality" { | 2056 | test "aggregate initializers should allow initializing comptime fields, verifying equality" { |
| 2057 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2058 | |||
| 2059 | var x: u32 = 15; | 2059 | var x: u32 = 15; |
| 2060 | _ = &x; | 2060 | _ = &x; |
| 2061 | const T = @TypeOf(.{ @as(i32, -1234), @as(u32, 5678), x }); | 2061 | const T = @TypeOf(.{ @as(i32, -1234), @as(u32, 5678), x }); |
test/behavior/switch_on_captured_error.zig+4| ... | @@ -5,6 +5,8 @@ const expectError = std.testing.expectError; | ... | @@ -5,6 +5,8 @@ const expectError = std.testing.expectError; |
| 5 | const expectEqual = std.testing.expectEqual; | 5 | const expectEqual = std.testing.expectEqual; |
| 6 | 6 | ||
| 7 | test "switch on error union catch capture" { | 7 | test "switch on error union catch capture" { |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | |||
| 8 | const S = struct { | 10 | const S = struct { |
| 9 | const Error = error{ A, B, C }; | 11 | const Error = error{ A, B, C }; |
| 10 | fn doTheTest() !void { | 12 | fn doTheTest() !void { |
| ... | @@ -257,6 +259,8 @@ test "switch on error union catch capture" { | ... | @@ -257,6 +259,8 @@ test "switch on error union catch capture" { |
| 257 | } | 259 | } |
| 258 | 260 | ||
| 259 | test "switch on error union if else capture" { | 261 | test "switch on error union if else capture" { |
| 262 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 263 | |||
| 260 | const S = struct { | 264 | const S = struct { |
| 261 | const Error = error{ A, B, C }; | 265 | const Error = error{ A, B, C }; |
| 262 | fn doTheTest() !void { | 266 | fn doTheTest() !void { |
test/behavior/tuple.zig-1| ... | @@ -483,7 +483,6 @@ test "empty tuple type" { | ... | @@ -483,7 +483,6 @@ test "empty tuple type" { |
| 483 | 483 | ||
| 484 | test "tuple with comptime fields with non empty initializer" { | 484 | test "tuple with comptime fields with non empty initializer" { |
| 485 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 485 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 486 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 487 | 486 | ||
| 488 | const a: struct { comptime comptime_int = 0 } = .{0}; | 487 | const a: struct { comptime comptime_int = 0 } = .{0}; |
| 489 | _ = a; | 488 | _ = a; |
test/behavior/union.zig+2-1| ... | @@ -1119,6 +1119,7 @@ test "@unionInit on union with tag but no fields" { | ... | @@ -1119,6 +1119,7 @@ test "@unionInit on union with tag but no fields" { |
| 1119 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 1119 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1120 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 1120 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 1121 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1121 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1122 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 1122 | 1123 | ||
| 1123 | const S = struct { | 1124 | const S = struct { |
| 1124 | const Type = enum(u8) { no_op = 105 }; | 1125 | const Type = enum(u8) { no_op = 105 }; |
| ... | @@ -2059,7 +2060,6 @@ test "store of comptime reinterpreted memory to packed union" { | ... | @@ -2059,7 +2060,6 @@ test "store of comptime reinterpreted memory to packed union" { |
| 2059 | 2060 | ||
| 2060 | test "union field is a pointer to an aligned version of itself" { | 2061 | test "union field is a pointer to an aligned version of itself" { |
| 2061 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 2062 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 2062 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2063 | 2063 | ||
| 2064 | const E = union { | 2064 | const E = union { |
| 2065 | next: *align(1) @This(), | 2065 | next: *align(1) @This(), |
| ... | @@ -2181,6 +2181,7 @@ test "create union(enum) from other union(enum)" { | ... | @@ -2181,6 +2181,7 @@ test "create union(enum) from other union(enum)" { |
| 2181 | if (builtin.zig_backend == .stage2_x86) return error.SkipZigTest; // TODO | 2181 | if (builtin.zig_backend == .stage2_x86) return error.SkipZigTest; // TODO |
| 2182 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 2182 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 2183 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 2183 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 2184 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 2184 | 2185 | ||
| 2185 | const string = "hello world"; | 2186 | const string = "hello world"; |
| 2186 | const TempRef = struct { | 2187 | const TempRef = struct { |
test/behavior/vector.zig-1| ... | @@ -1060,7 +1060,6 @@ test "@addWithOverflow" { | ... | @@ -1060,7 +1060,6 @@ test "@addWithOverflow" { |
| 1060 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 1060 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 1061 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 1061 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1062 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1062 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1063 | // if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 1064 | 1063 | ||
| 1065 | const S = struct { | 1064 | const S = struct { |
| 1066 | fn doTheTest() !void { | 1065 | fn doTheTest() !void { |
test/behavior/wrapping_arithmetic.zig+6| ... | @@ -5,6 +5,8 @@ const maxInt = std.math.maxInt; | ... | @@ -5,6 +5,8 @@ const maxInt = std.math.maxInt; |
| 5 | const expect = std.testing.expect; | 5 | const expect = std.testing.expect; |
| 6 | 6 | ||
| 7 | test "wrapping add" { | 7 | test "wrapping add" { |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | |||
| 8 | const S = struct { | 10 | const S = struct { |
| 9 | fn doTheTest() !void { | 11 | fn doTheTest() !void { |
| 10 | try testWrapAdd(i8, -3, 10, 7); | 12 | try testWrapAdd(i8, -3, 10, 7); |
| ... | @@ -40,6 +42,8 @@ test "wrapping add" { | ... | @@ -40,6 +42,8 @@ test "wrapping add" { |
| 40 | } | 42 | } |
| 41 | 43 | ||
| 42 | test "wrapping subtraction" { | 44 | test "wrapping subtraction" { |
| 45 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 46 | |||
| 43 | const S = struct { | 47 | const S = struct { |
| 44 | fn doTheTest() !void { | 48 | fn doTheTest() !void { |
| 45 | try testWrapSub(i8, -3, 10, -13); | 49 | try testWrapSub(i8, -3, 10, -13); |
| ... | @@ -73,6 +77,8 @@ test "wrapping subtraction" { | ... | @@ -73,6 +77,8 @@ test "wrapping subtraction" { |
| 73 | } | 77 | } |
| 74 | 78 | ||
| 75 | test "wrapping multiplication" { | 79 | test "wrapping multiplication" { |
| 80 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 81 | |||
| 76 | // TODO: once #9660 has been solved, remove this line | 82 | // TODO: once #9660 has been solved, remove this line |
| 77 | if (builtin.cpu.arch == .wasm32) return error.SkipZigTest; | 83 | if (builtin.cpu.arch == .wasm32) return error.SkipZigTest; |
| 78 | 84 |