aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/BitVectorTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-06-07 14:14:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-06-07 14:14:38 +0000
commit2566e0498cdfb5aaa4f69a549be49d1122b3e863 (patch)
tree69910d6b9ea4b22db93df9c6d5d2350a4f0336f2 /llvm/unittests/ADT/BitVectorTest.cpp
parent74dcb1a8de8c6b1f3b8f183d3e9e804eb0c27cff (diff)
downloadllvm-2566e0498cdfb5aaa4f69a549be49d1122b3e863.zip
llvm-2566e0498cdfb5aaa4f69a549be49d1122b3e863.tar.gz
llvm-2566e0498cdfb5aaa4f69a549be49d1122b3e863.tar.bz2
Optimize BitVector::all().
llvm-svn: 183521
Diffstat (limited to 'llvm/unittests/ADT/BitVectorTest.cpp')
-rw-r--r--llvm/unittests/ADT/BitVectorTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/BitVectorTest.cpp b/llvm/unittests/ADT/BitVectorTest.cpp
index dc298a8..f97be22 100644
--- a/llvm/unittests/ADT/BitVectorTest.cpp
+++ b/llvm/unittests/ADT/BitVectorTest.cpp
@@ -141,6 +141,14 @@ TYPED_TEST(BitVectorTest, TrivialOperation) {
EXPECT_TRUE(Vec.none());
EXPECT_FALSE(Vec.empty());
+ Vec.flip();
+ EXPECT_EQ(130U, Vec.count());
+ EXPECT_EQ(130U, Vec.size());
+ EXPECT_TRUE(Vec.any());
+ EXPECT_TRUE(Vec.all());
+ EXPECT_FALSE(Vec.none());
+ EXPECT_FALSE(Vec.empty());
+
Inv = TypeParam().flip();
EXPECT_EQ(0U, Inv.count());
EXPECT_EQ(0U, Inv.size());