[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / localization / locale.stdcvt / codecvt_mode.pass.cpp
blob09a83047e71963d3392237638820e1daa6bb5727
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 // enum codecvt_mode
12 // {
13 // consume_header = 4,
14 // generate_header = 2,
15 // little_endian = 1
16 // };
18 #include <codecvt>
19 #include <cassert>
21 #include "test_macros.h"
23 int main(int, char**)
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);
31 return 0;