Home | History | Annotate | Download | only in time.cal.wdidx.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 weekday_indexed;
     14 
     15 // template<class charT, class traits>
     16 //   basic_ostream<charT, traits>&
     17 //   operator<<(basic_ostream<charT, traits>& os, const weekday_indexed& wdi);
     18 //
     19 //   Effects: os << wdi.weekday() << '[' << wdi.index().
     20 //     If wdi.index() is in the range [1, 5], appends with ']',
     21 //       otherwise appends with " is not a valid index]".
     22 
     23 
     24 #include <chrono>
     25 #include <type_traits>
     26 #include <cassert>
     27 
     28 #include "test_macros.h"
     29 
     30 int main()
     31 {
     32     using weekday_indexed = std::chrono::weekday_indexed;
     33     using weekday         = std::chrono::weekday;
     34 
     35     std::cout << weekday_indexed{weekday{3}};
     36 }
     37