• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
10 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
11 
12 // <chrono>
13 
14 // file_time
15 
16 #include <chrono>
17 
18 #include "test_macros.h"
19 
20 template <class Dur>
test()21 void test() {
22   ASSERT_SAME_TYPE(std::chrono::file_time<Dur>, std::chrono::time_point<std::chrono::file_clock, Dur>);
23 }
24 
main()25 int main() {
26   test<std::chrono::nanoseconds>();
27   test<std::chrono::minutes>();
28   test<std::chrono::hours>();
29 }