mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
Merge pull request #25163 from ziglang/packed-union-unused
forbid unused bits in packed unions
This commit is contained in:
@@ -2496,6 +2496,7 @@ or
|
||||
{#header_open|packed union#}
|
||||
<p>A {#syntax#}packed union{#endsyntax#} has well-defined in-memory layout and is eligible
|
||||
to be in a {#link|packed struct#}.</p>
|
||||
<p>All fields in a packed union must have the same {#link|@bitSizeOf#}.</p>
|
||||
{#header_close#}
|
||||
|
||||
{#header_open|Anonymous Union Literals#}
|
||||
|
||||
Reference in New Issue
Block a user