[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / localization / locale.stdcvt / codecvt_utf8_utf16_always_noconv.pass.cpp
blob6b65978ba706ab55f7404364983f62e5f4a6d88b
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 // <codecvt>
11 // template <class Elem, unsigned long Maxcode = 0x10ffff,
12 // codecvt_mode Mode = (codecvt_mode)0>
13 // class codecvt_utf8_utf16
14 // : public codecvt<Elem, char, mbstate_t>
15 // {
16 // // unspecified
17 // };
19 // bool always_noconv() const throw();
21 #include <codecvt>
22 #include <cassert>
24 #include "test_macros.h"
26 int main(int, char**)
29 typedef std::codecvt_utf8_utf16<wchar_t> C;
30 C c;
31 bool r = c.always_noconv();
32 assert(r == false);
35 typedef std::codecvt_utf8_utf16<char16_t> C;
36 C c;
37 bool r = c.always_noconv();
38 assert(r == false);
41 typedef std::codecvt_utf8_utf16<char32_t> C;
42 C c;
43 bool r = c.always_noconv();
44 assert(r == false);
47 return 0;