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_last; 14 // 15 // template<class charT, class traits> 16 // basic_ostream<charT, traits>& 17 // operator<<(basic_ostream<charT, traits>& os, const month_day_last& mdl); 18 // 19 // Returns: os << mdl.month() << "/last". 20 21 22 #include <chrono> 23 #include <type_traits> 24 #include <cassert> 25 #include <iostream> 26 27 #include "test_macros.h" 28 main()29int main() 30 { 31 using month_day_last = std::chrono::month_day_last; 32 using month = std::chrono::month; 33 std::cout << month_day_last{month{1}}; 34 } 35