blob: 1fe6b10da5acbe59320e265ec8fc3c335d4c7954 [file] [log] [blame]
Howard Hinnant94b2dd02010-08-22 00:59:46 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnant412dbeb2010-11-16 22:09:02 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Howard Hinnant94b2dd02010-08-22 00:59:46 +00007//
8//===----------------------------------------------------------------------===//
9
10// <chrono>
11
12// typedef duration<signed integral type of at least 55 bits, micro> microseconds;
13
14#include <chrono>
15#include <type_traits>
16#include <limits>
17
18int main()
19{
20 typedef std::chrono::microseconds 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 >= 54, "");
26 static_assert((std::is_same<Period, std::micro>::value), "");
27}