mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 23:23:07 +00:00
std: update for new packed union rules
This commit is contained in:
parent
b9a63433b7
commit
b074299124
@ -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…
x
Reference in New Issue
Block a user