mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Compiler segfault when using bitwise not on number literal cast to bitstruct #2373.
This commit is contained in:
12
test/test_suite/bitstruct/bitstruct_negate_cast.c3t
Normal file
12
test/test_suite/bitstruct/bitstruct_negate_cast.c3t
Normal file
@@ -0,0 +1,12 @@
|
||||
// #target: macos-x64
|
||||
module test;
|
||||
bitstruct Foo : uint
|
||||
{
|
||||
bool test : 2;
|
||||
}
|
||||
|
||||
fn int main()
|
||||
{
|
||||
~(Foo)2;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user