// { dg-do run { target c++17 xfail *-*-* } } // { dg-require-debug-mode "" } #include #include #include using test_type = std::unordered_multiset; void test01() { test_type c0{ 1, 1, 2, 2, 3, 3 }; test_type c1 = c0; auto it = c1.find(2); VERIFY( *it == 2 ); c0.merge(std::move(c1)); VERIFY( it != c1.end() ); // Invalid iterator. } int main() { test01(); }