• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 // UNSUPPORTED: c++03, c++11, c++14, c++17
9 // XFAIL: *
10 
11 // <chrono>
12 // class year_month_day_last;
13 
14 // template<class charT, class traits>
15 //   basic_ostream<charT, traits>&
16 //   operator<<(basic_ostream<charT, traits>& os, const year_month_day_last& ymdl);
17 //
18 // Returns: os << ymdl.year() << '/' << ymdl.month_day_last().
19 
20 
21 #include <chrono>
22 #include <type_traits>
23 #include <cassert>
24 #include <iostream>
25 
26 #include "test_macros.h"
27 
main(int,char **)28 int main(int, char**)
29 {
30     using year_month_day_last = std::chrono::year_month_day_last;
31     using year                = std::chrono::year;
32     using month               = std::chrono::month;
33     using month_day_last      = std::chrono::month_day_last;
34 
35     std::cout << year_month_day_last{year{2018}, month_day_last{month{3}}};
36 
37   return 0;
38 }
39