Files
c3c/test/test_suite/bitstruct/big_endian_char.c3t
Christoffer Lerno 04cd079d4e - Compiler segfault when accessing member of number cast to bitstruct #2516.
- Additional fix to #2515
- Compiler assert when getting a member of a `bitstruct : char @bigendian` #2517.
2025-10-07 00:12:41 +02:00

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;
}