blob: b73b40687985f71d3d277d0a69c266149021b693 [file] [log] [blame]
library test.bits;
type MyBits = strict bits : uint32 {
MY_FIRST_BIT = 1;
MY_OTHER_BIT = 2;
// check for any collisions between the bitmask and a "mask" member
MASK = 4;
};
type StrictBits = strict bits : uint64 {
SMALLEST = 1;
BIGGEST = 0x8000000000000000;
};
type FlexibleBits = flexible bits : uint64 {
SMALLEST = 1;
BIGGEST = 0x8000000000000000;
};