[llvm] [ADT] Add DenseSet(llvm::from_t, Range) (PR #131832)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 22 10:21:06 PDT 2025


================
@@ -33,6 +33,12 @@ TEST(DenseSetTest, DoubleEntrySetTest) {
   EXPECT_EQ(0u, set.count(2));
 }
 
+TEST(DenseSetTest, CtorRange) {
+  constexpr unsigned Args[] = {3, 1, 2};
+  llvm::DenseSet<unsigned> set(llvm::from_range, Args);
----------------
kuhar wrote:

Could you also add a test for `SmallDenseSet`?

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


More information about the llvm-commits mailing list