libcxx

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

file_time.pass.cpp (734B)


      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>
     21 void test() {
     22   ASSERT_SAME_TYPE(std::chrono::file_time<Dur>, std::chrono::time_point<std::chrono::file_clock, Dur>);
     23 }
     24 
     25 int main() {
     26   test<std::chrono::nanoseconds>();
     27   test<std::chrono::minutes>();
     28   test<std::chrono::hours>();
     29 }