• 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 month_weekday_last;
14 //
15 // template<class charT, class traits>
16 //     basic_ostream<charT, traits>&
17 //     operator<<(basic_ostream<charT, traits>& os, const month_weekday_last& mdl);
18 //
19 //     Returns: os << mdl.month() << "/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 month_weekday_last = std::chrono::month_weekday_last;
32     using month              = std::chrono::month;
33     using weekday            = std::chrono::weekday;
34     using weekday_last       = std::chrono::weekday_last;
35 
36     std::cout << month_weekday_last{month{1}, weekday_last{weekday{3}}};
37 }
38