| ... | @@ -8,7 +8,6 @@ const expectEqual = testing.expectEqual; | ... | @@ -8,7 +8,6 @@ const expectEqual = testing.expectEqual; |
| 8 | test "array to slice" { | 8 | test "array to slice" { |
| 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_arm) return error.SkipZigTest; | 10 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 11 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | | |
| 12 | | 11 | |
| 13 | const a: u32 align(4) = 3; | 12 | const a: u32 align(4) = 3; |
| 14 | const b: u32 align(8) = 4; | 13 | const b: u32 align(8) = 4; |
| ... | @@ -62,7 +61,7 @@ test "array init with mult" { | ... | @@ -62,7 +61,7 @@ test "array init with mult" { |
| 62 | | 61 | |
| 63 | test "array literal with explicit type" { | 62 | test "array literal with explicit type" { |
| 64 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 63 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 65 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 64 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 66 | | 65 | |
| 67 | const hex_mult: [4]u16 = .{ 4096, 256, 16, 1 }; | 66 | const hex_mult: [4]u16 = .{ 4096, 256, 16, 1 }; |
| 68 | | 67 | |
| ... | @@ -71,7 +70,7 @@ test "array literal with explicit type" { | ... | @@ -71,7 +70,7 @@ test "array literal with explicit type" { |
| 71 | } | 70 | } |
| 72 | | 71 | |
| 73 | test "array literal with inferred length" { | 72 | test "array literal with inferred length" { |
| 74 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 73 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 75 | | 74 | |
| 76 | const hex_mult = [_]u16{ 4096, 256, 16, 1 }; | 75 | const hex_mult = [_]u16{ 4096, 256, 16, 1 }; |
| 77 | | 76 | |
| ... | @@ -92,7 +91,7 @@ const some_array = [_]u8{ 0, 1, 2, 3 }; | ... | @@ -92,7 +91,7 @@ const some_array = [_]u8{ 0, 1, 2, 3 }; |
| 92 | | 91 | |
| 93 | test "array literal with specified size" { | 92 | test "array literal with specified size" { |
| 94 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 93 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 95 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 94 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 96 | | 95 | |
| 97 | var array = [2]u8{ 1, 2 }; | 96 | var array = [2]u8{ 1, 2 }; |
| 98 | try expect(array[0] == 1); | 97 | try expect(array[0] == 1); |
| ... | @@ -101,7 +100,7 @@ test "array literal with specified size" { | ... | @@ -101,7 +100,7 @@ test "array literal with specified size" { |
| 101 | | 100 | |
| 102 | test "array len field" { | 101 | test "array len field" { |
| 103 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 102 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 104 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 103 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 105 | | 104 | |
| 106 | var arr = [4]u8{ 0, 0, 0, 0 }; | 105 | var arr = [4]u8{ 0, 0, 0, 0 }; |
| 107 | var ptr = &arr; | 106 | var ptr = &arr; |
| ... | @@ -143,7 +142,7 @@ test "array with sentinels" { | ... | @@ -143,7 +142,7 @@ test "array with sentinels" { |
| 143 | | 142 | |
| 144 | test "void arrays" { | 143 | test "void arrays" { |
| 145 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 144 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 146 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 145 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 147 | | 146 | |
| 148 | var array: [4]void = undefined; | 147 | var array: [4]void = undefined; |
| 149 | array[0] = void{}; | 148 | array[0] = void{}; |
| ... | @@ -222,7 +221,7 @@ test "implicit cast zero sized array ptr to slice" { | ... | @@ -222,7 +221,7 @@ test "implicit cast zero sized array ptr to slice" { |
| 222 | | 221 | |
| 223 | test "anonymous list literal syntax" { | 222 | test "anonymous list literal syntax" { |
| 224 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 223 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 225 | if (builtin.zig_backend == .stage2_x86_64 or builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | 224 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| 226 | | 225 | |
| 227 | const S = struct { | 226 | const S = struct { |
| 228 | fn doTheTest() !void { | 227 | fn doTheTest() !void { |
| ... | @@ -282,7 +281,6 @@ test "read/write through global variable array of struct fields initialized via | ... | @@ -282,7 +281,6 @@ test "read/write through global variable array of struct fields initialized via |
| 282 | test "implicit cast single-item pointer" { | 281 | test "implicit cast single-item pointer" { |
| 283 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 282 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 284 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 283 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 285 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | | |
| 286 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 284 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 287 | | 285 | |
| 288 | try testImplicitCastSingleItemPtr(); | 286 | try testImplicitCastSingleItemPtr(); |
| ... | @@ -303,7 +301,6 @@ fn testArrayByValAtComptime(b: [2]u8) u8 { | ... | @@ -303,7 +301,6 @@ fn testArrayByValAtComptime(b: [2]u8) u8 { |
| 303 | test "comptime evaluating function that takes array by value" { | 301 | test "comptime evaluating function that takes array by value" { |
| 304 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 302 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 305 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 303 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 306 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | | |
| 307 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 304 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 308 | | 305 | |
| 309 | const arr = [_]u8{ 1, 2 }; | 306 | const arr = [_]u8{ 1, 2 }; |
| ... | @@ -316,7 +313,6 @@ test "comptime evaluating function that takes array by value" { | ... | @@ -316,7 +313,6 @@ test "comptime evaluating function that takes array by value" { |
| 316 | test "runtime initialize array elem and then implicit cast to slice" { | 313 | test "runtime initialize array elem and then implicit cast to slice" { |
| 317 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 314 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 318 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 315 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 319 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | | |
| 320 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 316 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 321 | | 317 | |
| 322 | var two: i32 = 2; | 318 | var two: i32 = 2; |
| ... | @@ -327,7 +323,6 @@ test "runtime initialize array elem and then implicit cast to slice" { | ... | @@ -327,7 +323,6 @@ test "runtime initialize array elem and then implicit cast to slice" { |
| 327 | test "array literal as argument to function" { | 323 | test "array literal as argument to function" { |
| 328 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 324 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 329 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 325 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 330 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | | |
| 331 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 326 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 332 | | 327 | |
| 333 | const S = struct { | 328 | const S = struct { |
| ... | @@ -418,7 +413,6 @@ test "double nested array to const slice cast in array literal" { | ... | @@ -418,7 +413,6 @@ test "double nested array to const slice cast in array literal" { |
| 418 | test "anonymous literal in array" { | 413 | test "anonymous literal in array" { |
| 419 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 414 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 420 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 415 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 421 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | | |
| 422 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 416 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 423 | | 417 | |
| 424 | const S = struct { | 418 | const S = struct { |
| ... | @@ -444,7 +438,6 @@ test "anonymous literal in array" { | ... | @@ -444,7 +438,6 @@ test "anonymous literal in array" { |
| 444 | test "access the null element of a null terminated array" { | 438 | test "access the null element of a null terminated array" { |
| 445 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 439 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 446 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 440 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 447 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | | |
| 448 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 441 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 449 | | 442 | |
| 450 | const S = struct { | 443 | const S = struct { |
| ... | @@ -462,7 +455,6 @@ test "access the null element of a null terminated array" { | ... | @@ -462,7 +455,6 @@ test "access the null element of a null terminated array" { |
| 462 | test "type deduction for array subscript expression" { | 455 | test "type deduction for array subscript expression" { |
| 463 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | 456 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 464 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO | 457 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| 465 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO | | |
| 466 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO | 458 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 467 | | 459 | |
| 468 | const S = struct { | 460 | const S = struct { |