1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 // template <class Elem, unsigned long Maxcode = 0x10ffff,
12 // codecvt_mode Mode = (codecvt_mode)0>
14 // : public codecvt<Elem, char, mbstate_t>
19 // int max_length() const throw();
24 #include "test_macros.h"
29 typedef std::codecvt_utf8
<wchar_t> C
;
31 int r
= c
.max_length();
35 typedef std::codecvt_utf8
<wchar_t, 0xFFFFFFFF, std::consume_header
> C
;
37 int r
= c
.max_length();
41 typedef std::codecvt_utf8
<char16_t
> C
;
43 int r
= c
.max_length();
47 typedef std::codecvt_utf8
<char16_t
, 0xFFFFFFFF, std::consume_header
> C
;
49 int r
= c
.max_length();
53 typedef std::codecvt_utf8
<char32_t
> C
;
55 int r
= c
.max_length();
59 typedef std::codecvt_utf8
<char32_t
, 0xFFFFFFFF, std::consume_header
> C
;
61 int r
= c
.max_length();