| ... | @@ -1929,6 +1929,8 @@ test "inner struct initializer uses union layout" { | ... | @@ -1929,6 +1929,8 @@ test "inner struct initializer uses union layout" { |
| 1929 | } | 1929 | } |
| 1930 | | 1930 | |
| 1931 | test "inner struct initializer uses packed union layout" { | 1931 | test "inner struct initializer uses packed union layout" { |
| | 1932 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| | 1933 | |
| 1932 | const namespace = struct { | 1934 | const namespace = struct { |
| 1933 | const U = packed union { | 1935 | const U = packed union { |
| 1934 | a: packed struct { | 1936 | a: packed struct { |
| ... | @@ -1953,6 +1955,8 @@ test "inner struct initializer uses packed union layout" { | ... | @@ -1953,6 +1955,8 @@ test "inner struct initializer uses packed union layout" { |
| 1953 | } | 1955 | } |
| 1954 | | 1956 | |
| 1955 | test "extern union initialized via reintepreted struct field initializer" { | 1957 | test "extern union initialized via reintepreted struct field initializer" { |
| | 1958 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| | 1959 | |
| 1956 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; | 1960 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; |
| 1957 | | 1961 | |
| 1958 | const U = extern union { | 1962 | const U = extern union { |
| ... | @@ -1970,6 +1974,8 @@ test "extern union initialized via reintepreted struct field initializer" { | ... | @@ -1970,6 +1974,8 @@ test "extern union initialized via reintepreted struct field initializer" { |
| 1970 | } | 1974 | } |
| 1971 | | 1975 | |
| 1972 | test "packed union initialized via reintepreted struct field initializer" { | 1976 | test "packed union initialized via reintepreted struct field initializer" { |
| | 1977 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| | 1978 | |
| 1973 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; | 1979 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; |
| 1974 | | 1980 | |
| 1975 | const U = packed union { | 1981 | const U = packed union { |
| ... | @@ -1988,6 +1994,8 @@ test "packed union initialized via reintepreted struct field initializer" { | ... | @@ -1988,6 +1994,8 @@ test "packed union initialized via reintepreted struct field initializer" { |
| 1988 | } | 1994 | } |
| 1989 | | 1995 | |
| 1990 | test "store of comptime reinterpreted memory to extern union" { | 1996 | test "store of comptime reinterpreted memory to extern union" { |
| | 1997 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| | 1998 | |
| 1991 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; | 1999 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; |
| 1992 | | 2000 | |
| 1993 | const U = extern union { | 2001 | const U = extern union { |
| ... | @@ -2008,6 +2016,8 @@ test "store of comptime reinterpreted memory to extern union" { | ... | @@ -2008,6 +2016,8 @@ test "store of comptime reinterpreted memory to extern union" { |
| 2008 | } | 2016 | } |
| 2009 | | 2017 | |
| 2010 | test "store of comptime reinterpreted memory to packed union" { | 2018 | test "store of comptime reinterpreted memory to packed union" { |
| | 2019 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| | 2020 | |
| 2011 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; | 2021 | const bytes = [_]u8{ 0xaa, 0xbb, 0xcc, 0xdd }; |
| 2012 | | 2022 | |
| 2013 | const U = packed union { | 2023 | const U = packed union { |
| ... | @@ -2063,6 +2073,8 @@ test "pass register-sized field as non-register-sized union" { | ... | @@ -2063,6 +2073,8 @@ test "pass register-sized field as non-register-sized union" { |
| 2063 | } | 2073 | } |
| 2064 | | 2074 | |
| 2065 | test "circular dependency through pointer field of a union" { | 2075 | test "circular dependency through pointer field of a union" { |
| | 2076 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| | 2077 | |
| 2066 | const S = struct { | 2078 | const S = struct { |
| 2067 | const UnionInner = extern struct { | 2079 | const UnionInner = extern struct { |
| 2068 | outer: UnionOuter = std.mem.zeroes(UnionOuter), | 2080 | outer: UnionOuter = std.mem.zeroes(UnionOuter), |