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_day_last;
14 
15 // template<class charT, class traits>
16 //   basic_ostream<charT, traits>&
17 //   operator<<(basic_ostream<charT, traits>& os, const year_month_day_last& ymdl);
18 //
19 // Returns: os << ymdl.year() << '/' << ymdl.month_day_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_day_last = std::chrono::year_month_day_last;
32     using year                = std::chrono::year;
33     using month               = std::chrono::month;
34     using month_day_last      = std::chrono::month_day_last;
35 
36     std::cout << year_month_day_last{year{2018}, month_day_last{month{3}}};
37 }
38