Skip to content

Comments

Add bitfield test file#22156

Merged
WalterBright merged 1 commit intodlang:masterfrom
WalterBright:bitfieldsPre
Nov 28, 2025
Merged

Add bitfield test file#22156
WalterBright merged 1 commit intodlang:masterfrom
WalterBright:bitfieldsPre

Conversation

@WalterBright
Copy link
Member

I resurrected this from #16084 in order to incorporate the test case.

@WalterBright WalterBright merged commit d3c8e62 into dlang:master Nov 28, 2025
54 of 55 checks passed
@WalterBright WalterBright deleted the bitfieldsPre branch November 28, 2025 23:49
s.a = 1;
s.b = 2;
s.c = 3;
v = *cast(ulong *)&s;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unaligned load. :-(

Why not use a union to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants