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