[llvm] [LLVM] Add zstd compressed frame magic to LLVM magic (PR #222773)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 01:03:53 PDT 2026


================
@@ -154,3 +160,22 @@ TEST_F(MagicTest, Magic) {
     ASSERT_NO_ERROR(fs::remove(Twine(file_pathname)));
   }
 }
+
+TEST_F(MagicTest, ZstdCompressedBlob) {
+  if (!compression::zstd::isAvailable())
+    GTEST_SKIP() << "zstd is not available";
+
+  static const int Levels[] = {compression::zstd::NoCompression,
----------------
jh7370 wrote:

`constexpr` instead of `static const`?

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


More information about the llvm-commits mailing list