diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-24 22:27:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-24 22:28:37 -0700 |
| commit | 27eb42c15e4e9ab547eaf02cca8810cc0e10e6bf (patch) | |
| tree | 83cd40198ef1f55946163766a04fe9202a510206 /test/behavior/basic.zig | |
| parent | adb746a7017ba6f91974d5e940bc8a8f64bb45f5 (diff) | |
| download | zig-27eb42c15e4e9ab547eaf02cca8810cc0e10e6bf.tar.gz zig-27eb42c15e4e9ab547eaf02cca8810cc0e10e6bf.zip | |
Sema: implement tupleFieldVal, fix comptime elem_ptr
Diffstat (limited to 'test/behavior/basic.zig')
| -rw-r--r-- | test/behavior/basic.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index 024e24e400..304b4a83f7 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -691,8 +691,6 @@ test "string escapes" { } test "explicit cast optional pointers" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO - const a: ?*i32 = undefined; const b: ?*f32 = @ptrCast(?*f32, a); _ = b; @@ -735,7 +733,6 @@ test "string concatenation" { } test "thread local variable" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO const S = struct { @@ -746,7 +743,11 @@ test "thread local variable" { } test "result location is optional inside error union" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO const x = maybe(true) catch unreachable; try expect(x.? == 42); @@ -760,7 +761,6 @@ fn maybe(x: bool) anyerror!?u32 { } test "pointer to thread local array" { - if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO const s = "Hello world"; |
