[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / unord / unord.multiset / get_allocator.pass.cpp
blob699565cc0378aa020e32a9281440b70792726cbd
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-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <unordered_set>
11 // class unordered_multiset
13 // allocator_type get_allocator() const
15 #include <unordered_set>
16 #include <cassert>
18 #include "test_allocator.h"
19 #include "test_macros.h"
21 int main(int, char**) {
23 std::allocator<int> alloc;
24 const std::unordered_multiset<int> s(alloc);
25 assert(s.get_allocator() == alloc);
28 other_allocator<int> alloc(1);
29 const std::unordered_multiset<int, std::hash<int>,
30 std::equal_to<int>,
31 other_allocator<int> > s(alloc);
32 assert(s.get_allocator() == alloc);
35 return 0;