brintos

brintos / llvm-project-archived public Read only

0
0
Text · 995 B · c86130d Raw
41 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// UNSUPPORTED: c++03, c++11, c++1410// TODO: Change to XFAIL once https://llvm.org/PR40995 is fixed11// UNSUPPORTED: availability-pmr-missing12 13// <string>14 15// namespace std::pmr {16//17// typedef ... string18// typedef ... u16string19// typedef ... u32string20// typedef ... wstring21//22// } // namespace std::pmr23 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_CHARACTERS33    std::pmr::wstring ws;34#endif35    std::pmr::u16string u16s;36    std::pmr::u32string u32s;37  }38 39  return 0;40}41