Remove building with NOCRYPTO option
[minix.git] / external / bsd / libc++ / dist / libcxx / test / re / re.traits / imbue.pass.cpp
blob11eca41de37a4d8ac97f9421c220d36ad025a90c
1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 // <regex>
12 // template <class charT> struct regex_traits;
14 // locale_type imbue(locale_type l);
16 #include <regex>
17 #include <locale>
18 #include <cassert>
20 #include "platform_support.h" // locale name macros
22 int main()
25 std::regex_traits<char> t;
26 std::locale loc = t.imbue(std::locale(LOCALE_en_US_UTF_8));
27 assert(loc.name() == "C");
28 assert(t.getloc().name() == LOCALE_en_US_UTF_8);