ported rewrite2 to c3

This commit is contained in:
Alessandro Mauri 2024-10-29 22:45:47 +01:00
parent 2dcc1b582c
commit 39e78ea078
40 changed files with 1478 additions and 2911 deletions

14
test/test_bitsruct.c3 Normal file
View file

@ -0,0 +1,14 @@
bitstruct Bits : uint {
bool a : 0;
bool b : 1;
bool c : 2;
}
fn int main()
{
Bits a = {false, true, false};
Bits b = {true, true, false};
Bits c = a | b;
return 0;
}