You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
176 B
15 lines
176 B
3 weeks ago
|
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;
|
||
|
}
|