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