tools/llvm: Do not build with symbols
[minix3.git] / external / bsd / libc++ / dist / libcxx / test / utilities / time / milliseconds.pass.cpp
blob75df301f7a65af87e5bffa218dde55d8b73b8625
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 //===----------------------------------------------------------------------===//
10 // <chrono>
12 // typedef duration<signed integral type of at least 45 bits, milli> milliseconds;
14 #include <chrono>
15 #include <type_traits>
16 #include <limits>
18 int main()
20 typedef std::chrono::milliseconds D;
21 typedef D::rep Rep;
22 typedef D::period Period;
23 static_assert(std::is_signed<Rep>::value, "");
24 static_assert(std::is_integral<Rep>::value, "");
25 static_assert(std::numeric_limits<Rep>::digits >= 44, "");
26 static_assert((std::is_same<Period, std::milli>::value), "");