brintos

brintos / llvm-project-archived public Read only

0
0
Text · 675 B · 84c14bd 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_multiset::hash_multiset(const hash_multiset&)12 13#include <cassert>14#include <ext/hash_set>15 16int main(int, char**) {17  __gnu_cxx::hash_multiset<int> set;18 19  set.insert(1);20  set.insert(1);21 22  auto set2 = set;23 24  assert(set2.size() == 2);25 26  return 0;27}28