mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-28 04:21:17 +00:00
Auto-import std::core. Fix module assignment of declarations. Introspection improvements. Deref null error panics in safe mode. Support for LLVM 15
This commit is contained in:
committed by
Christoffer Lerno
parent
df41caabdd
commit
b1d83e2ccd
19
test/test_suite2/bitstruct/bitstruct_single_error.c3
Normal file
19
test/test_suite2/bitstruct/bitstruct_single_error.c3
Normal 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'
|
||||
}
|
||||
Reference in New Issue
Block a user