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