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 //===----------------------------------------------------------------------===//
8 
9 // <codecvt>
10 
11 // enum codecvt_mode
12 // {
13 //     consume_header = 4,
14 //     generate_header = 2,
15 //     little_endian = 1
16 // };
17 
18 #include <codecvt>
19 #include <cassert>
20 
21 #include "test_macros.h"
22 
23 int main(int, char**)
24 {
25     assert(std::consume_header == 4);
26     assert(std::generate_header == 2);
27     assert(std::little_endian == 1);
28     std::codecvt_mode e = std::consume_header;
29     assert(e == 4);
30 
31   return 0;
32 }
33