| ... | @@ -128,7 +128,11 @@ fn testDerefPtrOneVal() !void { | ... | @@ -128,7 +128,11 @@ fn testDerefPtrOneVal() !void { |
| 128 | } | 128 | } |
| 129 | | 129 | |
| 130 | test "peer type resolution with C pointers" { | 130 | test "peer type resolution with C pointers" { |
| 131 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO | 131 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| | 132 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| | 133 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| | 134 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| | 135 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 132 | | 136 | |
| 133 | var ptr_one: *u8 = undefined; | 137 | var ptr_one: *u8 = undefined; |
| 134 | var ptr_many: [*]u8 = undefined; | 138 | var ptr_many: [*]u8 = undefined; |
| ... | @@ -159,7 +163,11 @@ test "implicit casting between C pointer and optional non-C pointer" { | ... | @@ -159,7 +163,11 @@ test "implicit casting between C pointer and optional non-C pointer" { |
| 159 | } | 163 | } |
| 160 | | 164 | |
| 161 | test "implicit cast error unions with non-optional to optional pointer" { | 165 | test "implicit cast error unions with non-optional to optional pointer" { |
| 162 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO | 166 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| | 167 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| | 168 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| | 169 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| | 170 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 163 | | 171 | |
| 164 | const S = struct { | 172 | const S = struct { |
| 165 | fn doTheTest() !void { | 173 | fn doTheTest() !void { |
| ... | @@ -376,7 +384,11 @@ test "pointer arithmetic affects the alignment" { | ... | @@ -376,7 +384,11 @@ test "pointer arithmetic affects the alignment" { |
| 376 | } | 384 | } |
| 377 | | 385 | |
| 378 | test "@ptrToInt on null optional at comptime" { | 386 | test "@ptrToInt on null optional at comptime" { |
| 379 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO | 387 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO |
| | 388 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO |
| | 389 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| | 390 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; |
| | 391 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; |
| 380 | | 392 | |
| 381 | { | 393 | { |
| 382 | const pointer = @intToPtr(?*u8, 0x000); | 394 | const pointer = @intToPtr(?*u8, 0x000); |