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//===----------------------------------------------------------------------===//
8
9// UNSUPPORTED: c++03, c++11, c++14
10// TODO: Change to XFAIL once https://github.com/llvm/llvm-project/issues/40340 is fixed
11// UNSUPPORTED: availability-pmr-missing
12
13// <unordered_map>
14
15// namespace std::pmr {
16//
17// typedef ... unordered_map
18//
19// } // namespace std::pmr
20
21#include <unordered_map>
22
23int main(int, char**) {
24 {
25 // Check that std::pmr::unordered_map is usable without <memory_resource>.
26 std::pmr::unordered_map<int, int> m;
27 std::pmr::unordered_multimap<int, int> mm;
28 }
29
30 return 0;
31}
32

source code of libcxx/test/std/utilities/utility/mem.res/mem.res.aliases/header_unordered_map_synop2.pass.cpp