• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
10 // XFAIL: *
11 
12 // <chrono>
13 // class year_month_weekday_last;
14 
15 // template<class charT, class traits>
16 //     basic_ostream<charT, traits>&
17 //     operator<<(basic_ostream<charT, traits>& os, const year_month_weekday_last& ymwdl);
18 //
19 //   Returns: os << ymwdl.year() << '/' << ymwdl.month() << '/' << ymwdl.weekday_last().
20 
21 
22 #include <chrono>
23 #include <type_traits>
24 #include <cassert>
25 #include <iostream>
26 
27 #include "test_macros.h"
28 
main()29 int main()
30 {
31     using year_month_weekday_last = std::chrono::year_month_weekday_last;
32     using year                    = std::chrono::year;
33     using month                   = std::chrono::month;
34     using weekday                 = std::chrono::weekday;
35     using weekday_last            = std::chrono::weekday_last;
36 
37     std::cout << year_month_weekday_last{year{2018}, month{3}, weekday_last{weekday{4}}};
38 }
39