[llvm] Unittests and usability for BitstreamWriter incremental flushing (PR #92983)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 12:32:51 PDT 2024


================
@@ -55,4 +61,77 @@ TEST(BitstreamWriterTest, emitBlob4ByteAligned) {
   EXPECT_EQ(StringRef("str0"), Buffer);
 }
 
+class BitstreamWriterFlushTest : public ::testing::TestWithParam<int> {
+protected:
+  const unsigned BlkID = bitc::FIRST_APPLICATION_BLOCKID + 17;
----------------
mtrofin wrote:

ugh. random number. added comment.

https://github.com/llvm/llvm-project/pull/92983


More information about the llvm-commits mailing list