brintos

brintos / llvm-project-archived public Read only

0
0
Text · 718 B · 9f9737b Raw
28 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated10 11// hash_multimap::hash_multimap(const hash_multimap&)12 13#include <cassert>14#include <ext/hash_map>15 16int main(int, char**) {17  __gnu_cxx::hash_multimap<int, int> map;18 19  map.insert(std::make_pair(1, 1));20  map.insert(std::make_pair(1, 1));21 22  auto map2 = map;23 24  assert(map2.size() == 2);25 26  return 0;27}28