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