Remove building with NOCRYPTO option
[minix.git] / external / bsd / libc++ / dist / libcxx / test / re / re.traits / translate.pass.cpp
blobc3523387c56baf42963c5dd89935702c50c0d9a1
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 // charT translate(charT c) const;
17 #include <regex>
18 #include <cassert>
20 int main()
23 std::regex_traits<char> t;
24 assert(t.translate('a') == 'a');
25 assert(t.translate('B') == 'B');
26 assert(t.translate('c') == 'c');
29 std::regex_traits<wchar_t> t;
30 assert(t.translate(L'a') == L'a');
31 assert(t.translate(L'B') == L'B');
32 assert(t.translate(L'c') == L'c');