[llvm] [ADT] Introduce Casting function objects (PR #165803)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 4 13:38:29 PST 2025


================
@@ -561,6 +561,47 @@ TEST(CastingTest, assertion_check_unique_ptr) {
       << "Invalid cast of const ref did not cause an abort()";
 }
 
+TEST(Casting, StaticCastPredicate) {
+  uint32_t Value = 1;
+
+  EXPECT_TRUE(
----------------
kuhar wrote:

Use static_assert

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


More information about the llvm-commits mailing list