ugui.c3l/test/test_bitsruct.c3

15 lines
176 B
Plaintext
Raw Permalink Normal View History

2024-10-29 22:45:47 +01:00
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;
}