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// <string>
14
15// namespace std::pmr {
16//
17// typedef ... string
18// typedef ... u16string
19// typedef ... u32string
20// typedef ... wstring
21//
22// } // namespace std::pmr
23
24#include <string>
25
26#include "test_macros.h"
27
28int main(int, char**) {
29 {
30 // Check that std::pmr::string is usable without <memory_resource>.
31 std::pmr::string s;
32#ifndef TEST_HAS_NO_WIDE_CHARACTERS
33 std::pmr::wstring ws;
34#endif
35 std::pmr::u16string u16s;
36 std::pmr::u32string u32s;
37 }
38
39 return 0;
40}
41

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