| author | |
| committer | |
| log | 16e88b75ba3e2eb13dbbf0de9194c3bf1a01026e |
| tree | 1ca72d4a53ff497afb8bb5f32ba2aee92ea5f4b1 |
| parent | 97448e4d5f6a4c1f9eb7ed11d8b147c0883168c2 |
5 files changed, 0 insertions(+), 18 deletions(-)
test/behavior/basic.zig-5| ... | @@ -336,7 +336,6 @@ test "call result of if else expression" { | ... | @@ -336,7 +336,6 @@ test "call result of if else expression" { |
| 336 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 336 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 337 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 337 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 338 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 338 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 339 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 340 | 339 | ||
| 341 | try expect(mem.eql(u8, f2(true), "a")); | 340 | try expect(mem.eql(u8, f2(true), "a")); |
| 342 | try expect(mem.eql(u8, f2(false), "b")); | 341 | try expect(mem.eql(u8, f2(false), "b")); |
| ... | @@ -616,8 +615,6 @@ test "global variable initialized to global variable array element" { | ... | @@ -616,8 +615,6 @@ test "global variable initialized to global variable array element" { |
| 616 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 615 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 617 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 616 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 618 | 617 | ||
| 619 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | ||
| 620 | |||
| 621 | try expect(global_ptr == &gdt[0]); | 618 | try expect(global_ptr == &gdt[0]); |
| 622 | } | 619 | } |
| 623 | const GDTEntry = struct { | 620 | const GDTEntry = struct { |
| ... | @@ -660,7 +657,6 @@ test "multiline string literal is null terminated" { | ... | @@ -660,7 +657,6 @@ test "multiline string literal is null terminated" { |
| 660 | } | 657 | } |
| 661 | 658 | ||
| 662 | test "string escapes" { | 659 | test "string escapes" { |
| 663 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | ||
| 664 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 660 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 665 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 661 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 666 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 662 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| ... | @@ -733,7 +729,6 @@ test "thread local variable" { | ... | @@ -733,7 +729,6 @@ test "thread local variable" { |
| 733 | } | 729 | } |
| 734 | 730 | ||
| 735 | test "result location is optional inside error union" { | 731 | test "result location is optional inside error union" { |
| 736 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 737 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 732 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 738 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 733 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 739 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 734 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
test/behavior/bitcast.zig-1| ... | @@ -241,7 +241,6 @@ test "bitcast packed struct literal to byte" { | ... | @@ -241,7 +241,6 @@ test "bitcast packed struct literal to byte" { |
| 241 | } | 241 | } |
| 242 | 242 | ||
| 243 | test "comptime bitcast used in expression has the correct type" { | 243 | test "comptime bitcast used in expression has the correct type" { |
| 244 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | ||
| 245 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 244 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 246 | 245 | ||
| 247 | const Foo = packed struct { | 246 | const Foo = packed struct { |
test/behavior/bugs/4328.zig-5| ... | @@ -17,8 +17,6 @@ const S = extern struct { | ... | @@ -17,8 +17,6 @@ const S = extern struct { |
| 17 | }; | 17 | }; |
| 18 | 18 | ||
| 19 | test "Extern function calls in @TypeOf" { | 19 | test "Extern function calls in @TypeOf" { |
| 20 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | ||
| 21 | |||
| 22 | const Test = struct { | 20 | const Test = struct { |
| 23 | fn test_fn_1(a: anytype, b: anytype) @TypeOf(printf("%d %s\n", a, b)) { | 21 | fn test_fn_1(a: anytype, b: anytype) @TypeOf(printf("%d %s\n", a, b)) { |
| 24 | return 0; | 22 | return 0; |
| ... | @@ -39,8 +37,6 @@ test "Extern function calls in @TypeOf" { | ... | @@ -39,8 +37,6 @@ test "Extern function calls in @TypeOf" { |
| 39 | } | 37 | } |
| 40 | 38 | ||
| 41 | test "Peer resolution of extern function calls in @TypeOf" { | 39 | test "Peer resolution of extern function calls in @TypeOf" { |
| 42 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | ||
| 43 | |||
| 44 | const Test = struct { | 40 | const Test = struct { |
| 45 | fn test_fn() @TypeOf(ftell(null), fputs(null, null)) { | 41 | fn test_fn() @TypeOf(ftell(null), fputs(null, null)) { |
| 46 | return 0; | 42 | return 0; |
| ... | @@ -57,7 +53,6 @@ test "Peer resolution of extern function calls in @TypeOf" { | ... | @@ -57,7 +53,6 @@ test "Peer resolution of extern function calls in @TypeOf" { |
| 57 | 53 | ||
| 58 | test "Extern function calls, dereferences and field access in @TypeOf" { | 54 | test "Extern function calls, dereferences and field access in @TypeOf" { |
| 59 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 55 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 60 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | ||
| 61 | 56 | ||
| 62 | const Test = struct { | 57 | const Test = struct { |
| 63 | fn test_fn_1(a: c_long) @TypeOf(fopen("test", "r").*) { | 58 | fn test_fn_1(a: c_long) @TypeOf(fopen("test", "r").*) { |
test/behavior/ptrcast.zig-5| ... | @@ -59,7 +59,6 @@ fn testReinterpretStructWrappedBytesAsInteger() !void { | ... | @@ -59,7 +59,6 @@ fn testReinterpretStructWrappedBytesAsInteger() !void { |
| 59 | test "reinterpret bytes of an array into an extern struct" { | 59 | test "reinterpret bytes of an array into an extern struct" { |
| 60 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | 60 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 61 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 61 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 62 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 63 | 62 | ||
| 64 | try testReinterpretBytesAsExternStruct(); | 63 | try testReinterpretBytesAsExternStruct(); |
| 65 | comptime try testReinterpretBytesAsExternStruct(); | 64 | comptime try testReinterpretBytesAsExternStruct(); |
| ... | @@ -82,7 +81,6 @@ fn testReinterpretBytesAsExternStruct() !void { | ... | @@ -82,7 +81,6 @@ fn testReinterpretBytesAsExternStruct() !void { |
| 82 | test "reinterpret bytes of an extern struct (with under-aligned fields) into another" { | 81 | test "reinterpret bytes of an extern struct (with under-aligned fields) into another" { |
| 83 | if (builtin.zig_backend == .stage1) return error.SkipZigTest; | 82 | if (builtin.zig_backend == .stage1) return error.SkipZigTest; |
| 84 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO: Under-aligned fields are not yet supported in the CBE | 83 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO: Under-aligned fields are not yet supported in the CBE |
| 85 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 86 | 84 | ||
| 87 | try testReinterpretExternStructAsExternStruct(); | 85 | try testReinterpretExternStructAsExternStruct(); |
| 88 | comptime try testReinterpretExternStructAsExternStruct(); | 86 | comptime try testReinterpretExternStructAsExternStruct(); |
| ... | @@ -107,7 +105,6 @@ fn testReinterpretExternStructAsExternStruct() !void { | ... | @@ -107,7 +105,6 @@ fn testReinterpretExternStructAsExternStruct() !void { |
| 107 | 105 | ||
| 108 | test "reinterpret bytes of an extern struct into another" { | 106 | test "reinterpret bytes of an extern struct into another" { |
| 109 | if (builtin.zig_backend == .stage1) return error.SkipZigTest; | 107 | if (builtin.zig_backend == .stage1) return error.SkipZigTest; |
| 110 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 111 | 108 | ||
| 112 | try testReinterpretOverAlignedExternStructAsExternStruct(); | 109 | try testReinterpretOverAlignedExternStructAsExternStruct(); |
| 113 | comptime try testReinterpretOverAlignedExternStructAsExternStruct(); | 110 | comptime try testReinterpretOverAlignedExternStructAsExternStruct(); |
| ... | @@ -138,7 +135,6 @@ test "lower reinterpreted comptime field ptr (with under-aligned fields)" { | ... | @@ -138,7 +135,6 @@ test "lower reinterpreted comptime field ptr (with under-aligned fields)" { |
| 138 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 135 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 139 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | 136 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 140 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO: CBE does not yet support under-aligned fields | 137 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO: CBE does not yet support under-aligned fields |
| 141 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 142 | 138 | ||
| 143 | // Test lowering a field ptr | 139 | // Test lowering a field ptr |
| 144 | comptime var bytes align(2) = [_]u8{ 1, 2, 3, 4, 5, 6 }; | 140 | comptime var bytes align(2) = [_]u8{ 1, 2, 3, 4, 5, 6 }; |
| ... | @@ -162,7 +158,6 @@ test "lower reinterpreted comptime field ptr" { | ... | @@ -162,7 +158,6 @@ test "lower reinterpreted comptime field ptr" { |
| 162 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 158 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 163 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO | 159 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 164 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | 160 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 165 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 166 | 161 | ||
| 167 | // Test lowering a field ptr | 162 | // Test lowering a field ptr |
| 168 | comptime var bytes align(4) = [_]u8{ 1, 2, 3, 4, 5, 6, 7, 8 }; | 163 | comptime var bytes align(4) = [_]u8{ 1, 2, 3, 4, 5, 6, 7, 8 }; |
test/behavior/type_info.zig-2| ... | @@ -160,7 +160,6 @@ test "type info: error set, error union info, anyerror" { | ... | @@ -160,7 +160,6 @@ test "type info: error set, error union info, anyerror" { |
| 160 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 160 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 161 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 161 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 162 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | 162 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 163 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 164 | 163 | ||
| 165 | try testErrorSet(); | 164 | try testErrorSet(); |
| 166 | comptime try testErrorSet(); | 165 | comptime try testErrorSet(); |
| ... | @@ -192,7 +191,6 @@ test "type info: error set single value" { | ... | @@ -192,7 +191,6 @@ test "type info: error set single value" { |
| 192 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 191 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 193 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 192 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 194 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | 193 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO |
| 195 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO | ||
| 196 | 194 | ||
| 197 | const TestSet = error.One; | 195 | const TestSet = error.One; |
| 198 | 196 |