Home | History | Annotate | Download | only in locale.stdcvt
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <codecvt>
     11 
     12 // enum codecvt_mode
     13 // {
     14 //     consume_header = 4,
     15 //     generate_header = 2,
     16 //     little_endian = 1
     17 // };
     18 
     19 #include <codecvt>
     20 #include <cassert>
     21 
     22 int main()
     23 {
     24     assert(std::consume_header == 4);
     25     assert(std::generate_header == 2);
     26     assert(std::little_endian == 1);
     27     std::codecvt_mode e = std::consume_header;
     28     assert(e == 4);
     29 }
     30