diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-06-09 19:06:30 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-06-09 19:06:30 +0000 |
commit | 85d8b2bbe386bcfe669575d05b61482d7be07e5d (patch) | |
tree | 1dc5e75ab222a9ead44c699eceafab7a6ca7b310 /unittests/ADT/APIntTest.cpp | |
parent | 5a5ac124e1efaf208671f01c46edb15f29ed2a0b (diff) |
Diffstat (limited to 'unittests/ADT/APIntTest.cpp')
-rw-r--r-- | unittests/ADT/APIntTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index 498f50c9c81ff..e4398f0f669c9 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -134,6 +134,12 @@ TEST(APIntTest, i1) { EXPECT_EQ(one, neg_one); EXPECT_EQ(two, neg_two); + // Min/max signed values. + EXPECT_TRUE(zero.isMaxSignedValue()); + EXPECT_FALSE(one.isMaxSignedValue()); + EXPECT_FALSE(zero.isMinSignedValue()); + EXPECT_TRUE(one.isMinSignedValue()); + // Additions. EXPECT_EQ(two, one + one); EXPECT_EQ(zero, neg_one + one); |