1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template <class charT> struct regex_traits;
14 // locale_type imbue(locale_type l);
20 #include "platform_support.h" // locale name macros
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
);