Remove building with NOCRYPTO option
[minix.git] / external / bsd / libc++ / dist / libcxx / test / re / re.traits / default.pass.cpp
blobc9a97e025ac5bf6026621209efddb9a9ef0fb6f9
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // The LLVM Compiler Infrastructure
5 //
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
11 // <regex>
13 // template <class charT> struct regex_traits;
15 // regex_traits();
17 #include <regex>
18 #include <cassert>
20 #include "platform_support.h" // locale name macros
22 int main()
25 std::regex_traits<char> t1;
26 assert(t1.getloc().name() == "C");
27 std::regex_traits<wchar_t> t2;
28 assert(t2.getloc().name() == "C");
31 std::locale::global(std::locale(LOCALE_en_US_UTF_8));
32 std::regex_traits<char> t1;
33 assert(t1.getloc().name() == LOCALE_en_US_UTF_8);
34 std::regex_traits<wchar_t> t2;
35 assert(t2.getloc().name() == LOCALE_en_US_UTF_8);