mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a new bit-vector implementation optimized for
IRGen's needs. Swift SVN r24295
This commit is contained in:
9
utils/test-clustered-bit-vector/test.cpp
Normal file
9
utils/test-clustered-bit-vector/test.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "swift/Basic/ClusteredBitVector.h"
|
||||
using namespace swift;
|
||||
int main() {
|
||||
ClusteredBitVector cbvs[16];
|
||||
cbvs[7].appendSetBits(65);
|
||||
cbvs[3].appendClearBits(118);
|
||||
cbvs[7] = std::move(cbvs[3]);
|
||||
assert(cbvs[7][64] == false);
|
||||
}
|
||||
Reference in New Issue
Block a user