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 // <locale> 10 11 // class time_base 12 // { 13 // public: 14 // enum dateorder {no_order, dmy, mdy, ymd, ydm}; 15 // }; 16 17 #include <locale> 18 #include <cassert> 19 20 #include "test_macros.h" 21 main(int,char **)22int main(int, char**) 23 { 24 std::time_base::dateorder d = std::time_base::no_order; 25 ((void)d); // Prevent unused warning 26 assert(std::time_base::no_order == 0); 27 assert(std::time_base::dmy == 1); 28 assert(std::time_base::mdy == 2); 29 assert(std::time_base::ymd == 3); 30 assert(std::time_base::ydm == 4); 31 32 return 0; 33 } 34