]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/std/localization/locale.categories/category.time/locale.time.get/time_base.pass.cpp
Vendor import of libc++ trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / test / std / localization / locale.categories / category.time / locale.time.get / time_base.pass.cpp
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 // <locale>
11
12 // class time_base
13 // {
14 // public:
15 //     enum dateorder {no_order, dmy, mdy, ymd, ydm};
16 // };
17
18 #include <locale>
19 #include <cassert>
20
21 int main()
22 {
23     std::time_base::dateorder d = std::time_base::no_order;
24     ((void)d); // Prevent unused warning
25     assert(std::time_base::no_order == 0);
26     assert(std::time_base::dmy == 1);
27     assert(std::time_base::mdy == 2);
28     assert(std::time_base::ymd == 3);
29     assert(std::time_base::ydm == 4);
30 }