diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-08 22:19:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-08 22:19:25 -0700 |
| commit | bb73775d40e04796b0dd60341303d567db0a8020 (patch) | |
| tree | cef4e263687d31c5255d6a2c22fb0ed006d18972 /test/behavior/struct.zig | |
| parent | 6f560c99094eec2210f2d76a2449b5f60191e11b (diff) | |
| download | zig-bb73775d40e04796b0dd60341303d567db0a8020.tar.gz zig-bb73775d40e04796b0dd60341303d567db0a8020.zip | |
Sema: implement coercion of tuples to structs
Diffstat (limited to 'test/behavior/struct.zig')
| -rw-r--r-- | test/behavior/struct.zig | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index d4190fcd21..a90f1c0609 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -995,7 +995,11 @@ test "comptime struct field" { } test "tuple element initialized with fn call" { - 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_arm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO const S = struct { fn doTheTest() !void { @@ -1011,7 +1015,7 @@ test "tuple element initialized with fn call" { } test "struct with union field" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO const Value = struct { ref: u32 = 2, @@ -1029,7 +1033,11 @@ test "struct with union field" { } test "type coercion of anon struct literal to struct" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO const S = struct { const S2 = struct { |
