#include "llvm/ADT/Bitfields.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
TEST(BitfieldsTest, Example) { … }
TEST(BitfieldsTest, FirstBit) { … }
TEST(BitfieldsTest, SecondBit) { … }
TEST(BitfieldsTest, LastBit) { … }
TEST(BitfieldsTest, LastBitUint64) { … }
TEST(BitfieldsTest, Enum) { … }
TEST(BitfieldsTest, EnumClass) { … }
TEST(BitfieldsTest, OneBitSigned) { … }
TEST(BitfieldsTest, TwoBitSigned) { … }
TEST(BitfieldsTest, isOverlapping) { … }
TEST(BitfieldsTest, areContiguous) { … }
TEST(BitfieldsTest, FullUint64) { … }
TEST(BitfieldsTest, FullInt64) { … }
#ifdef EXPECT_DEBUG_DEATH
TEST(BitfieldsTest, ValueTooBigBool) { … }
TEST(BitfieldsTest, ValueTooBigInt) { … }
TEST(BitfieldsTest, ValueTooBigBounded) { … }
#endif
}