[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / re / re.traits / imbue.pass.cpp
blob0200ce01e3c0f9b5e47981374050239ce95b5717
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 // REQUIRES: locale.en_US.UTF-8
11 // <regex>
13 // template <class charT> struct regex_traits;
15 // locale_type imbue(locale_type l);
17 #include <regex>
18 #include <locale>
19 #include <cassert>
21 #include "test_macros.h"
22 #include "platform_support.h" // locale name macros
24 int main(int, char**)
27 std::regex_traits<char> t;
28 std::locale loc = t.imbue(std::locale(LOCALE_en_US_UTF_8));
29 assert(loc.name() == "C");
30 assert(t.getloc().name() == LOCALE_en_US_UTF_8);
33 return 0;