[llvm] [ADT] Add `DenseMap::insert_range` (PR #133600)
Baranov Victor via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 30 01:30:08 PDT 2025
================
@@ -379,6 +379,17 @@ TEST(DenseMapCustomTest, EqualityComparison) {
EXPECT_NE(M1, M3);
}
+TEST(DenseMapCustomTest, InsertRange) {
+ DenseMap<int, int> M;
+
+ std::pair<int, int> InputVals[3] = {{0, 0}, {0, 1}, {1, 2}};
+ M.insert_range(InputVals);
+
+ EXPECT_EQ(2u, M.size());
----------------
vbvictor wrote:
Done
https://github.com/llvm/llvm-project/pull/133600
More information about the llvm-commits
mailing list