Skip to content

Commit 36bfffb

Browse files
fix up bit test
1 parent bbce9eb commit 36bfffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/test/src/__support/CPP/bit_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ TYPED_TEST(LlvmLibcBitTest, CountZeros, UnsignedTypesNoBigInt) {
260260
}
261261

262262
TYPED_TEST(LlvmLibcBitTest, CountOnes, UnsignedTypesNoBigInt) {
263-
EXPECT_EQ(count_ones(T(0)), 0);
263+
EXPECT_EQ(popcount(T(0)), 0);
264264
for (int i = 0; i != cpp::numeric_limits<T>::digits; ++i)
265-
EXPECT_EQ(count_ones<T>(cpp::numeric_limits<T>::max() >> i),
265+
EXPECT_EQ(popcount<T>(cpp::numeric_limits<T>::max() >> i),
266266
cpp::numeric_limits<T>::digits - i);
267267
}
268268

0 commit comments

Comments
 (0)