xref: /aosp_15_r20/external/libcxx/test/std/utilities/time/time.point/time.point.cons/duration.fail.cpp (revision 58b9f456b02922dfdb1fad8a988d5fd8765ecb80)
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 // <chrono>
11 
12 // time_point
13 
14 // explicit time_point(const duration& d);
15 
16 // test for explicit
17 
18 #include <chrono>
19 
main()20 int main()
21 {
22     typedef std::chrono::system_clock Clock;
23     typedef std::chrono::milliseconds Duration;
24     std::chrono::time_point<Clock, Duration> t = Duration(3);
25 }
26