• 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 weekday_last;
13 
14 //   template<class charT, class traits>
15 //     basic_ostream<charT, traits>&
16 //     operator<<(basic_ostream<charT, traits>& os, const weekday_last& wdl);
17 //
18 //   Returns: os << wdl.weekday() << "[last]".
19 
20 #include <chrono>
21 #include <type_traits>
22 #include <cassert>
23 #include <iostream>
24 
25 #include "test_macros.h"
26 
main(int,char **)27 int main(int, char**)
28 {
29    using weekday_last = std::chrono::weekday_last;
30    using weekday      = std::chrono::weekday;
31 
32    std::cout << weekday_last{weekday{3}};
33 
34   return 0;
35 }
36