libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

streaming.pass.cpp (924B)


      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_last;
     14 
     15 //   template<class charT, class traits>
     16 //     basic_ostream<charT, traits>&
     17 //     operator<<(basic_ostream<charT, traits>& os, const weekday_last& wdl);
     18 //
     19 //   Returns: os << wdl.weekday() << "[last]".
     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 weekday_last = std::chrono::weekday_last;
     31    using weekday      = std::chrono::weekday;
     32 
     33    std::cout << weekday_last{weekday{3}};
     34 }