blob: ee6fce9c7aa6e5ec32ef6f732a320913de107aa8 [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;
};
type EmptyBits = flexible bits {};