mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std: update for new packed union rules
This commit is contained in:
parent
b9a63433b7
commit
b074299124
1 changed files with 0 additions and 7 deletions
|
|
@ -1193,13 +1193,6 @@ test hasUniqueRepresentation {
|
||||||
|
|
||||||
try testing.expect(hasUniqueRepresentation(TestStruct6));
|
try testing.expect(hasUniqueRepresentation(TestStruct6));
|
||||||
|
|
||||||
const TestUnion1 = packed union {
|
|
||||||
a: u32,
|
|
||||||
b: u16,
|
|
||||||
};
|
|
||||||
|
|
||||||
try testing.expect(!hasUniqueRepresentation(TestUnion1));
|
|
||||||
|
|
||||||
const TestUnion2 = extern union {
|
const TestUnion2 = extern union {
|
||||||
a: u32,
|
a: u32,
|
||||||
b: u16,
|
b: u16,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue