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_day;
13 
14 // template<class charT, class traits>
15 //     basic_ostream<charT, traits>&
16 //     operator<<(basic_ostream<charT, traits>& os, const month_day& md);
17 //
18 //     Returns: os << md.month() << '/' << md.day().
19 //
20 // template<class charT, class traits>
21 //     basic_ostream<charT, traits>&
22 //     to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month_day& md);
23 //
24 // Effects: Streams md into os using the format specified by the NTCTS fmt.
25 //          fmt encoding follows the rules specified in 25.11.
26 
27 
28 #include <chrono>
29 #include <type_traits>
30 #include <cassert>
31 #include <iostream>
32 #include "test_macros.h"
33 
main(int,char **)34 int main(int, char**)
35 {
36     using month_day = std::chrono::month_day;
37     using month     = std::chrono::month;
38     using day       = std::chrono::day;
39     std::cout << month_day{month{1}, day{1}};
40 
41   return 0;
42 }
43