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 month_weekday;
13
14 // template<class charT, class traits>
15 // basic_ostream<charT, traits>&
16 // operator<<(basic_ostream<charT, traits>& os, const month_weekday& mwd);
17 //
18 // Returns: os << mwd.month() << '/' << mwd.weekday_indexed().
19
20 #include <chrono>
21 #include <type_traits>
22 #include <cassert>
23 #include <iostream>
24
25 #include "test_macros.h"
26
main(int,char **)27 int main(int, char**)
28 {
29 using month_weekday = std::chrono::month_weekday;
30 using month = std::chrono::month;
31 using weekday_indexed = std::chrono::weekday_indexed;
32 using weekday = std::chrono::weekday;
33
34 std::cout << month_weekday{month{1}, weekday_indexed{weekday{3}, 3}};
35
36 return 0;
37 }
38