aboutsummaryrefslogtreecommitdiff
path: root/test/std/utilities/time/time.point/time.point.special/max.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/utilities/time/time.point/time.point.special/max.pass.cpp')
-rw-r--r--test/std/utilities/time/time.point/time.point.special/max.pass.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/std/utilities/time/time.point/time.point.special/max.pass.cpp b/test/std/utilities/time/time.point/time.point.special/max.pass.cpp
new file mode 100644
index 000000000000..6bba6fc82787
--- /dev/null
+++ b/test/std/utilities/time/time.point/time.point.special/max.pass.cpp
@@ -0,0 +1,25 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <chrono>
+
+// time_point
+
+// static constexpr time_point max();
+
+#include <chrono>
+#include <cassert>
+
+int main()
+{
+ typedef std::chrono::system_clock Clock;
+ typedef std::chrono::milliseconds Duration;
+ typedef std::chrono::time_point<Clock, Duration> TP;
+ assert(TP::max() == TP(Duration::max()));
+}