| author | |
| committer | |
| log | 37aa343079d32db96be742c9740f343ff8d2839e |
| tree | 2581c5c6e0925534ecf8aebe686535628b4b3d34 |
| parent | 2f28713bd7c8eefd90d59d69a0786ee3f12400e1 |
| signature |
39 files changed, 1 insertions(+), 62 deletions(-)
test/behavior/align.zig-4| ... | @@ -33,8 +33,6 @@ test "default alignment allows unspecified in type syntax" { | ... | @@ -33,8 +33,6 @@ test "default alignment allows unspecified in type syntax" { |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | test "implicitly decreasing pointer alignment" { | 35 | test "implicitly decreasing pointer alignment" { |
| 36 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 37 | |||
| 38 | const a: u32 align(4) = 3; | 36 | const a: u32 align(4) = 3; |
| 39 | const b: u32 align(8) = 4; | 37 | const b: u32 align(8) = 4; |
| 40 | try expect(addUnaligned(&a, &b) == 7); | 38 | try expect(addUnaligned(&a, &b) == 7); |
| ... | @@ -45,8 +43,6 @@ fn addUnaligned(a: *align(1) const u32, b: *align(1) const u32) u32 { | ... | @@ -45,8 +43,6 @@ fn addUnaligned(a: *align(1) const u32, b: *align(1) const u32) u32 { |
| 45 | } | 43 | } |
| 46 | 44 | ||
| 47 | test "@alignCast pointers" { | 45 | test "@alignCast pointers" { |
| 48 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 49 | |||
| 50 | var x: u32 align(4) = 1; | 46 | var x: u32 align(4) = 1; |
| 51 | expectsOnly1(&x); | 47 | expectsOnly1(&x); |
| 52 | try expect(x == 2); | 48 | try expect(x == 2); |
test/behavior/array.zig-2| ... | @@ -347,7 +347,6 @@ test "read/write through global variable array of struct fields initialized via | ... | @@ -347,7 +347,6 @@ test "read/write through global variable array of struct fields initialized via |
| 347 | test "implicit cast single-item pointer" { | 347 | test "implicit cast single-item pointer" { |
| 348 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 348 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 349 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 349 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 350 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 351 | 350 | ||
| 352 | try testImplicitCastSingleItemPtr(); | 351 | try testImplicitCastSingleItemPtr(); |
| 353 | comptime try testImplicitCastSingleItemPtr(); | 352 | comptime try testImplicitCastSingleItemPtr(); |
| ... | @@ -542,7 +541,6 @@ test "sentinel element count towards the ABI size calculation" { | ... | @@ -542,7 +541,6 @@ test "sentinel element count towards the ABI size calculation" { |
| 542 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 541 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 543 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 542 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 544 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 543 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 545 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 546 | 544 | ||
| 547 | const S = struct { | 545 | const S = struct { |
| 548 | fn doTheTest() !void { | 546 | fn doTheTest() !void { |
test/behavior/atomics.zig-2| ... | @@ -120,7 +120,6 @@ test "128-bit cmpxchg" { | ... | @@ -120,7 +120,6 @@ test "128-bit cmpxchg" { |
| 120 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 120 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 121 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 121 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 122 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 122 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 123 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 124 | 123 | ||
| 125 | try test_u128_cmpxchg(); | 124 | try test_u128_cmpxchg(); |
| 126 | comptime try test_u128_cmpxchg(); | 125 | comptime try test_u128_cmpxchg(); |
| ... | @@ -313,7 +312,6 @@ test "atomicrmw with 128-bit ints" { | ... | @@ -313,7 +312,6 @@ test "atomicrmw with 128-bit ints" { |
| 313 | 312 | ||
| 314 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 313 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 315 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | 314 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 316 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 317 | 315 | ||
| 318 | // TODO "ld.lld: undefined symbol: __sync_lock_test_and_set_16" on -mcpu x86_64 | 316 | // TODO "ld.lld: undefined symbol: __sync_lock_test_and_set_16" on -mcpu x86_64 |
| 319 | if (builtin.cpu.arch == .x86_64 and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; | 317 | if (builtin.cpu.arch == .x86_64 and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; |
test/behavior/basic.zig+1-1| ... | @@ -583,7 +583,7 @@ test "comptime cast fn to ptr" { | ... | @@ -583,7 +583,7 @@ test "comptime cast fn to ptr" { |
| 583 | } | 583 | } |
| 584 | 584 | ||
| 585 | test "equality compare fn ptrs" { | 585 | test "equality compare fn ptrs" { |
| 586 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | 586 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // Test passes but should not |
| 587 | 587 | ||
| 588 | var a = &emptyFn; | 588 | var a = &emptyFn; |
| 589 | try expect(a == a); | 589 | try expect(a == a); |
test/behavior/bitcast.zig-1| ... | @@ -9,7 +9,6 @@ const native_endian = builtin.target.cpu.arch.endian(); | ... | @@ -9,7 +9,6 @@ const native_endian = builtin.target.cpu.arch.endian(); |
| 9 | 9 | ||
| 10 | test "@bitCast iX -> uX (32, 64)" { | 10 | test "@bitCast iX -> uX (32, 64)" { |
| 11 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 11 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 12 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 13 | 12 | ||
| 14 | const bit_values = [_]usize{ 32, 64 }; | 13 | const bit_values = [_]usize{ 32, 64 }; |
| 15 | 14 |
test/behavior/bitreverse.zig-1| ... | @@ -5,7 +5,6 @@ const minInt = std.math.minInt; | ... | @@ -5,7 +5,6 @@ const minInt = std.math.minInt; |
| 5 | 5 | ||
| 6 | test "@bitReverse large exotic integer" { | 6 | test "@bitReverse large exotic integer" { |
| 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; | ||
| 9 | 8 | ||
| 10 | try expect(@bitReverse(@as(u95, 0x123456789abcdef111213141)) == 0x4146424447bd9eac8f351624); | 9 | try expect(@bitReverse(@as(u95, 0x123456789abcdef111213141)) == 0x4146424447bd9eac8f351624); |
| 11 | } | 10 | } |
test/behavior/call.zig-3| ... | @@ -109,7 +109,6 @@ test "result location of function call argument through runtime condition and st | ... | @@ -109,7 +109,6 @@ test "result location of function call argument through runtime condition and st |
| 109 | 109 | ||
| 110 | test "function call with 40 arguments" { | 110 | test "function call with 40 arguments" { |
| 111 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 111 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 112 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 113 | 112 | ||
| 114 | const S = struct { | 113 | const S = struct { |
| 115 | fn doTheTest(thirty_nine: i32) !void { | 114 | fn doTheTest(thirty_nine: i32) !void { |
| ... | @@ -374,8 +373,6 @@ test "Enum constructed by @Type passed as generic argument" { | ... | @@ -374,8 +373,6 @@ test "Enum constructed by @Type passed as generic argument" { |
| 374 | } | 373 | } |
| 375 | 374 | ||
| 376 | test "generic function with generic function parameter" { | 375 | test "generic function with generic function parameter" { |
| 377 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 378 | |||
| 379 | const S = struct { | 376 | const S = struct { |
| 380 | fn f(comptime a: fn (anytype) anyerror!void, b: anytype) anyerror!void { | 377 | fn f(comptime a: fn (anytype) anyerror!void, b: anytype) anyerror!void { |
| 381 | try a(b); | 378 | try a(b); |
test/behavior/cast.zig-2| ... | @@ -366,7 +366,6 @@ test "return u8 coercing into ?u32 return type" { | ... | @@ -366,7 +366,6 @@ test "return u8 coercing into ?u32 return type" { |
| 366 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 366 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 367 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 367 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 368 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 368 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 369 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 370 | 369 | ||
| 371 | const S = struct { | 370 | const S = struct { |
| 372 | fn doTheTest() !void { | 371 | fn doTheTest() !void { |
| ... | @@ -428,7 +427,6 @@ test "peer resolve array and const slice" { | ... | @@ -428,7 +427,6 @@ test "peer resolve array and const slice" { |
| 428 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 427 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 429 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 428 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 430 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 429 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 431 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 432 | 430 | ||
| 433 | try testPeerResolveArrayConstSlice(true); | 431 | try testPeerResolveArrayConstSlice(true); |
| 434 | comptime try testPeerResolveArrayConstSlice(true); | 432 | comptime try testPeerResolveArrayConstSlice(true); |
test/behavior/decltest.zig-2| ... | @@ -5,7 +5,5 @@ pub fn the_add_function(a: u32, b: u32) u32 { | ... | @@ -5,7 +5,5 @@ pub fn the_add_function(a: u32, b: u32) u32 { |
| 5 | } | 5 | } |
| 6 | 6 | ||
| 7 | test the_add_function { | 7 | test the_add_function { |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | |||
| 10 | if (the_add_function(1, 2) != 3) unreachable; | 8 | if (the_add_function(1, 2) != 3) unreachable; |
| 11 | } | 9 | } |
test/behavior/defer.zig-3| ... | @@ -23,8 +23,6 @@ fn testBreakContInDefer(x: usize) void { | ... | @@ -23,8 +23,6 @@ fn testBreakContInDefer(x: usize) void { |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | test "defer and labeled break" { | 25 | test "defer and labeled break" { |
| 26 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 27 | |||
| 28 | var i = @as(usize, 0); | 26 | var i = @as(usize, 0); |
| 29 | 27 | ||
| 30 | blk: { | 28 | blk: { |
| ... | @@ -58,7 +56,6 @@ test "return variable while defer expression in scope to modify it" { | ... | @@ -58,7 +56,6 @@ test "return variable while defer expression in scope to modify it" { |
| 58 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 56 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 59 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 57 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 60 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 58 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 61 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 62 | 59 | ||
| 63 | const S = struct { | 60 | const S = struct { |
| 64 | fn doTheTest() !void { | 61 | fn doTheTest() !void { |
test/behavior/duplicated_test_names.zig-2| ... | @@ -15,7 +15,5 @@ comptime { | ... | @@ -15,7 +15,5 @@ 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 | |||
| 20 | if (thingy(1, 2) != 3) unreachable; | 18 | if (thingy(1, 2) != 3) unreachable; |
| 21 | } | 19 | } |
test/behavior/enum.zig-1| ... | @@ -1046,7 +1046,6 @@ test "tag name with assigned enum values" { | ... | @@ -1046,7 +1046,6 @@ test "tag name with assigned enum values" { |
| 1046 | test "@tagName on enum literals" { | 1046 | test "@tagName on enum literals" { |
| 1047 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 1047 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 1048 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 1048 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 1049 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 1050 | 1049 | ||
| 1051 | try expect(mem.eql(u8, @tagName(.FooBar), "FooBar")); | 1050 | try expect(mem.eql(u8, @tagName(.FooBar), "FooBar")); |
| 1052 | comptime try expect(mem.eql(u8, @tagName(.FooBar), "FooBar")); | 1051 | comptime try expect(mem.eql(u8, @tagName(.FooBar), "FooBar")); |
test/behavior/error.zig-1| ... | @@ -16,7 +16,6 @@ fn expectError(expected_err: anyerror, observed_err_union: anytype) !void { | ... | @@ -16,7 +16,6 @@ fn expectError(expected_err: anyerror, observed_err_union: anytype) !void { |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | test "error values" { | 18 | test "error values" { |
| 19 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 20 | const a = @errorToInt(error.err1); | 19 | const a = @errorToInt(error.err1); |
| 21 | const b = @errorToInt(error.err2); | 20 | const b = @errorToInt(error.err2); |
| 22 | try expect(a != b); | 21 | try expect(a != b); |
test/behavior/eval.zig-1| ... | @@ -23,7 +23,6 @@ test "static add one" { | ... | @@ -23,7 +23,6 @@ test "static add one" { |
| 23 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 23 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 24 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 24 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 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; | ||
| 27 | 26 | ||
| 28 | try expect(should_be_1235 == 1235); | 27 | try expect(should_be_1235 == 1235); |
| 29 | } | 28 | } |
test/behavior/floatop.zig-1| ... | @@ -506,7 +506,6 @@ test "@fabs" { | ... | @@ -506,7 +506,6 @@ test "@fabs" { |
| 506 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 506 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 507 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 507 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 508 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 508 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 509 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 510 | 509 | ||
| 511 | comptime try testFabs(); | 510 | comptime try testFabs(); |
| 512 | try testFabs(); | 511 | try testFabs(); |
test/behavior/fn.zig-2| ... | @@ -5,8 +5,6 @@ const expect = testing.expect; | ... | @@ -5,8 +5,6 @@ const expect = testing.expect; |
| 5 | const expectEqual = testing.expectEqual; | 5 | const expectEqual = testing.expectEqual; |
| 6 | 6 | ||
| 7 | test "params" { | 7 | test "params" { |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | |||
| 10 | try expect(testParamsAdd(22, 11) == 33); | 8 | try expect(testParamsAdd(22, 11) == 33); |
| 11 | } | 9 | } |
| 12 | fn testParamsAdd(a: i32, b: i32) i32 { | 10 | fn testParamsAdd(a: i32, b: i32) i32 { |
test/behavior/fn_delegation.zig-1| ... | @@ -34,7 +34,6 @@ fn custom(comptime T: type, comptime num: u64) fn (T) u64 { | ... | @@ -34,7 +34,6 @@ fn custom(comptime T: type, comptime num: u64) fn (T) u64 { |
| 34 | test "fn delegation" { | 34 | test "fn delegation" { |
| 35 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 35 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 36 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 36 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 37 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 38 | 37 | ||
| 39 | const foo = Foo{}; | 38 | const foo = Foo{}; |
| 40 | try expect(foo.one() == 11); | 39 | try expect(foo.one() == 11); |
test/behavior/fn_in_struct_in_comptime.zig-2| ... | @@ -13,8 +13,6 @@ fn get_foo() fn (*u8) usize { | ... | @@ -13,8 +13,6 @@ fn get_foo() fn (*u8) usize { |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | test "define a function in an anonymous struct in comptime" { | 15 | test "define a function in an anonymous struct in comptime" { |
| 16 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 17 | |||
| 18 | const foo = get_foo(); | 16 | const foo = get_foo(); |
| 19 | try expect(foo(@intToPtr(*u8, 12345)) == 12345); | 17 | try expect(foo(@intToPtr(*u8, 12345)) == 12345); |
| 20 | } | 18 | } |
test/behavior/for.zig-2| ... | @@ -22,8 +22,6 @@ test "continue in for loop" { | ... | @@ -22,8 +22,6 @@ test "continue in for loop" { |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | test "break from outer for loop" { | 24 | test "break from outer for loop" { |
| 25 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 26 | |||
| 27 | try testBreakOuter(); | 25 | try testBreakOuter(); |
| 28 | comptime try testBreakOuter(); | 26 | comptime try testBreakOuter(); |
| 29 | } | 27 | } |
test/behavior/generics.zig-2| ... | @@ -5,8 +5,6 @@ const expect = testing.expect; | ... | @@ -5,8 +5,6 @@ const expect = testing.expect; |
| 5 | const expectEqual = testing.expectEqual; | 5 | const expectEqual = testing.expectEqual; |
| 6 | 6 | ||
| 7 | test "one param, explicit comptime" { | 7 | test "one param, explicit comptime" { |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | |||
| 10 | var x: usize = 0; | 8 | var x: usize = 0; |
| 11 | x += checkSize(i32); | 9 | x += checkSize(i32); |
| 12 | x += checkSize(bool); | 10 | x += checkSize(bool); |
test/behavior/if.zig-2| ... | @@ -71,8 +71,6 @@ test "labeled break inside comptime if inside runtime if" { | ... | @@ -71,8 +71,6 @@ test "labeled break inside comptime if inside runtime if" { |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | test "const result loc, runtime if cond, else unreachable" { | 73 | test "const result loc, runtime if cond, else unreachable" { |
| 74 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 75 | |||
| 76 | const Num = enum { One, Two }; | 74 | const Num = enum { One, Two }; |
| 77 | 75 | ||
| 78 | var t = true; | 76 | var t = true; |
test/behavior/inttoptr.zig-1| ... | @@ -14,7 +14,6 @@ test "mutate through ptr initialized with constant intToPtr value" { | ... | @@ -14,7 +14,6 @@ test "mutate through ptr initialized with constant intToPtr value" { |
| 14 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 14 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 15 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 15 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 16 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 16 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 17 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 18 | 17 | ||
| 19 | forceCompilerAnalyzeBranchHardCodedPtrDereference(false); | 18 | forceCompilerAnalyzeBranchHardCodedPtrDereference(false); |
| 20 | } | 19 | } |
test/behavior/maximum_minimum.zig-2| ... | @@ -129,8 +129,6 @@ test "@min/max for floats" { | ... | @@ -129,8 +129,6 @@ test "@min/max for floats" { |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | test "@min/@max on lazy values" { | 131 | test "@min/@max on lazy values" { |
| 132 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 133 | |||
| 134 | const A = extern struct { u8_4: [4]u8 }; | 132 | const A = extern struct { u8_4: [4]u8 }; |
| 135 | const B = extern struct { u8_16: [16]u8 }; | 133 | const B = extern struct { u8_16: [16]u8 }; |
| 136 | const size = @max(@sizeOf(A), @sizeOf(B)); | 134 | const size = @max(@sizeOf(A), @sizeOf(B)); |
test/behavior/optional.zig-1| ... | @@ -8,7 +8,6 @@ const expectEqualStrings = std.testing.expectEqualStrings; | ... | @@ -8,7 +8,6 @@ const expectEqualStrings = std.testing.expectEqualStrings; |
| 8 | test "passing an optional integer as a parameter" { | 8 | test "passing an optional integer as a parameter" { |
| 9 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 9 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 10 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 10 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 11 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 12 | 11 | ||
| 13 | const S = struct { | 12 | const S = struct { |
| 14 | fn entry() bool { | 13 | fn entry() bool { |
test/behavior/packed-struct.zig-1| ... | @@ -7,7 +7,6 @@ const native_endian = builtin.cpu.arch.endian(); | ... | @@ -7,7 +7,6 @@ const native_endian = builtin.cpu.arch.endian(); |
| 7 | 7 | ||
| 8 | test "flags in packed structs" { | 8 | test "flags in packed structs" { |
| 9 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 9 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 10 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 11 | 10 | ||
| 12 | const Flags1 = packed struct { | 11 | const Flags1 = packed struct { |
| 13 | // first 8 bits | 12 | // first 8 bits |
test/behavior/ref_var_in_if_after_if_2nd_switch_prong.zig-1| ... | @@ -8,7 +8,6 @@ test "reference a variable in an if after an if in the 2nd switch prong" { | ... | @@ -8,7 +8,6 @@ test "reference a variable in an if after an if in the 2nd switch prong" { |
| 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_sparc64) return error.SkipZigTest; // TODO | 10 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 11 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 12 | 11 | ||
| 13 | try foo(true, Num.Two, false, "aoeu"); | 12 | try foo(true, Num.Two, false, "aoeu"); |
| 14 | try expect(!ok); | 13 | try expect(!ok); |
test/behavior/reflection.zig-1| ... | @@ -28,7 +28,6 @@ fn dummy(a: bool, b: i32, c: f32) i32 { | ... | @@ -28,7 +28,6 @@ fn dummy(a: bool, b: i32, c: f32) i32 { |
| 28 | test "reflection: @field" { | 28 | test "reflection: @field" { |
| 29 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 29 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 30 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 30 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 31 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 32 | 31 | ||
| 33 | var f = Foo{ | 32 | var f = Foo{ |
| 34 | .one = 42, | 33 | .one = 42, |
test/behavior/sizeof_and_typeof.zig-2| ... | @@ -140,8 +140,6 @@ test "@sizeOf(T) == 0 doesn't force resolving struct size" { | ... | @@ -140,8 +140,6 @@ test "@sizeOf(T) == 0 doesn't force resolving struct size" { |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | test "@TypeOf() has no runtime side effects" { | 142 | test "@TypeOf() has no runtime side effects" { |
| 143 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 144 | |||
| 145 | const S = struct { | 143 | const S = struct { |
| 146 | fn foo(comptime T: type, ptr: *T) T { | 144 | fn foo(comptime T: type, ptr: *T) T { |
| 147 | ptr.* += 1; | 145 | ptr.* += 1; |
test/behavior/slice.zig-2| ... | @@ -201,8 +201,6 @@ test "slicing pointer by length" { | ... | @@ -201,8 +201,6 @@ test "slicing pointer by length" { |
| 201 | const x = @intToPtr([*]i32, 0x1000)[0..0x500]; | 201 | const x = @intToPtr([*]i32, 0x1000)[0..0x500]; |
| 202 | const y = x[0x100..]; | 202 | const y = x[0x100..]; |
| 203 | test "compile time slice of pointer to hard coded address" { | 203 | test "compile time slice of pointer to hard coded address" { |
| 204 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 205 | |||
| 206 | try expect(@ptrToInt(x) == 0x1000); | 204 | try expect(@ptrToInt(x) == 0x1000); |
| 207 | try expect(x.len == 0x500); | 205 | try expect(x.len == 0x500); |
| 208 | 206 |
test/behavior/struct.zig-1| ... | @@ -11,7 +11,6 @@ top_level_field: i32, | ... | @@ -11,7 +11,6 @@ top_level_field: i32, |
| 11 | test "top level fields" { | 11 | test "top level fields" { |
| 12 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 12 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 13 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 13 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 14 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 15 | 14 | ||
| 16 | var instance = @This(){ | 15 | var instance = @This(){ |
| 17 | .top_level_field = 1234, | 16 | .top_level_field = 1234, |
test/behavior/switch.zig-1| ... | @@ -215,7 +215,6 @@ fn poll() void { | ... | @@ -215,7 +215,6 @@ fn poll() void { |
| 215 | 215 | ||
| 216 | test "switch on global mutable var isn't constant-folded" { | 216 | test "switch on global mutable var isn't constant-folded" { |
| 217 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 217 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 218 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 219 | 218 | ||
| 220 | while (state < 2) { | 219 | while (state < 2) { |
| 221 | poll(); | 220 | poll(); |
test/behavior/this.zig-2| ... | @@ -21,8 +21,6 @@ fn add(x: i32, y: i32) i32 { | ... | @@ -21,8 +21,6 @@ fn add(x: i32, y: i32) i32 { |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | test "this refer to module call private fn" { | 23 | test "this refer to module call private fn" { |
| 24 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 25 | |||
| 26 | try expect(module.add(1, 2) == 3); | 24 | try expect(module.add(1, 2) == 3); |
| 27 | } | 25 | } |
| 28 | 26 |
test/behavior/threadlocal.zig-1| ... | @@ -11,7 +11,6 @@ test "thread local variable" { | ... | @@ -11,7 +11,6 @@ test "thread local variable" { |
| 11 | else => return error.SkipZigTest, | 11 | else => return error.SkipZigTest, |
| 12 | }; // TODO | 12 | }; // TODO |
| 13 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 13 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 14 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 15 | 14 | ||
| 16 | const S = struct { | 15 | const S = struct { |
| 17 | threadlocal var t: i32 = 1234; | 16 | threadlocal var t: i32 = 1234; |
test/behavior/type.zig-1| ... | @@ -491,7 +491,6 @@ test "Type.Fn" { | ... | @@ -491,7 +491,6 @@ test "Type.Fn" { |
| 491 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | 491 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| 492 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 492 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 493 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 493 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 494 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 495 | 494 | ||
| 496 | const some_opaque = opaque {}; | 495 | const some_opaque = opaque {}; |
| 497 | const some_ptr = *some_opaque; | 496 | const some_ptr = *some_opaque; |
test/behavior/type_info.zig-1| ... | @@ -285,7 +285,6 @@ fn testUnion() !void { | ... | @@ -285,7 +285,6 @@ fn testUnion() !void { |
| 285 | 285 | ||
| 286 | test "type info: struct info" { | 286 | test "type info: struct info" { |
| 287 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 287 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 288 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 289 | 288 | ||
| 290 | try testStruct(); | 289 | try testStruct(); |
| 291 | comptime try testStruct(); | 290 | comptime try testStruct(); |
test/behavior/undefined.zig-1| ... | @@ -81,7 +81,6 @@ test "assign undefined to struct with method" { | ... | @@ -81,7 +81,6 @@ test "assign undefined to struct with method" { |
| 81 | 81 | ||
| 82 | test "type name of undefined" { | 82 | test "type name of undefined" { |
| 83 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 83 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 84 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 85 | 84 | ||
| 86 | const x = undefined; | 85 | const x = undefined; |
| 87 | try expect(mem.eql(u8, @typeName(@TypeOf(x)), "@TypeOf(undefined)")); | 86 | try expect(mem.eql(u8, @typeName(@TypeOf(x)), "@TypeOf(undefined)")); |
test/behavior/union.zig-2| ... | @@ -1467,8 +1467,6 @@ test "packed union in packed struct" { | ... | @@ -1467,8 +1467,6 @@ test "packed union in packed struct" { |
| 1467 | } | 1467 | } |
| 1468 | 1468 | ||
| 1469 | test "Namespace-like union" { | 1469 | test "Namespace-like union" { |
| 1470 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 1471 | |||
| 1472 | const DepType = enum { | 1470 | const DepType = enum { |
| 1473 | git, | 1471 | git, |
| 1474 | http, | 1472 | http, |
test/behavior/var_args.zig-2| ... | @@ -14,8 +14,6 @@ fn add(args: anytype) i32 { | ... | @@ -14,8 +14,6 @@ fn add(args: anytype) i32 { |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | test "add arbitrary args" { | 16 | test "add arbitrary args" { |
| 17 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 18 | |||
| 19 | try expect(add(.{ @as(i32, 1), @as(i32, 2), @as(i32, 3), @as(i32, 4) }) == 10); | 17 | try expect(add(.{ @as(i32, 1), @as(i32, 2), @as(i32, 3), @as(i32, 4) }) == 10); |
| 20 | try expect(add(.{@as(i32, 1234)}) == 1234); | 18 | try expect(add(.{@as(i32, 1234)}) == 1234); |
| 21 | try expect(add(.{}) == 0); | 19 | try expect(add(.{}) == 0); |
test/behavior/while.zig-1| ... | @@ -5,7 +5,6 @@ const assert = std.debug.assert; | ... | @@ -5,7 +5,6 @@ const assert = std.debug.assert; |
| 5 | 5 | ||
| 6 | test "while loop" { | 6 | test "while loop" { |
| 7 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | 7 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO |
| 8 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 9 | 8 | ||
| 10 | var i: i32 = 0; | 9 | var i: i32 = 0; |
| 11 | while (i < 4) { | 10 | while (i < 4) { |