mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
19 lines
300 B
C
19 lines
300 B
C
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'
|
|
} |