aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/APIntTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
-rw-r--r--llvm/unittests/ADT/APIntTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp
index b8cf48c..a9993ac 100644
--- a/llvm/unittests/ADT/APIntTest.cpp
+++ b/llvm/unittests/ADT/APIntTest.cpp
@@ -3052,6 +3052,7 @@ TEST(APIntTest, ZeroWidth) {
EXPECT_EQ(0U, APInt::getLowBitsSet(0, 0).getBitWidth());
EXPECT_EQ(0U, APInt::getSplat(0, ZW).getBitWidth());
EXPECT_EQ(0U, APInt(4, 10).extractBits(0, 2).getBitWidth());
+ EXPECT_EQ(0U, APInt(4, 10).extractBitsAsZExtValue(0, 2));
// Logical operators.
ZW |= ZW2;