#include "llvm/ADT/APSInt.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
TEST(APSIntTest, MoveTest) { … }
TEST(APSIntTest, get) { … }
TEST(APSIntTest, getUnsigned) { … }
TEST(APSIntTest, isRepresentableByInt64) { … }
TEST(APSIntTest, getExtValue) { … }
TEST(APSIntTest, tryExtValue) { … }
TEST(APSIntTest, compareValues) { … }
TEST(APSIntTest, FromString) { … }
TEST(APSIntTest, FromStringBitWidth) { … }
#if defined(GTEST_HAS_DEATH_TEST) && !defined(NDEBUG)
TEST(APSIntTest, StringDeath) {
EXPECT_DEATH((void)APSInt(""), "Invalid string length");
EXPECT_DEATH((void)APSInt("1a"), "Invalid character in digit string");
}
#endif
TEST(APSIntTest, SignedHighBit) { … }
TEST(APSIntTest, UnsignedHighBit) { … }
}