Sema: implement cast from anon struct ptr to union ptr

This commit is contained in:
Andrew Kelley
2022-03-02 20:17:09 -07:00
parent ac7028f559
commit 06b1a88a15
3 changed files with 74 additions and 33 deletions

View File

@@ -978,7 +978,11 @@ test "cast from anonymous struct to union" {
}
test "cast from pointer to anonymous struct to pointer to 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 S = struct {
const U = union(enum) {