Bitstruct implementation.

This commit is contained in:
Christoffer Lerno
2021-11-01 23:48:34 +01:00
committed by Christoffer Lerno
parent 29e7af843a
commit 4f09b0c351
27 changed files with 2686 additions and 60 deletions

View File

@@ -0,0 +1,19 @@
bitstruct Foo1 : char
{
char x : 1..1;
}
bitstruct Foo2 : char
{
char x : 1; // #error: Only booleans may use non-range indices
}
bitstruct Foo3 : char
{
bool x : 0..2; // #error: The bit width of 'bool'
}
bitstruct Foo4 : int
{
char x : 0..15; // #error: The bit width of 'char'
}