mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Additional fix to #2515 - Compiler assert when getting a member of a `bitstruct : char @bigendian` #2517.
16 lines
218 B
Plaintext
16 lines
218 B
Plaintext
bitstruct Instruction : char @bigendian
|
|
{
|
|
ushort count : 4..7;
|
|
}
|
|
|
|
bitstruct Instruction2 : char @littleendian
|
|
{
|
|
ushort count : 4..7;
|
|
}
|
|
|
|
fn int main(String[] args)
|
|
{
|
|
Instruction a;
|
|
Instruction2 b;
|
|
return a.count;
|
|
} |