xref: /llvm-project/libcxx/test/std/time/time.point/duration.compile.fail.cpp (revision 7738db2c06b177fe916ac1bcf3633449b3c1fca9)
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // <chrono>
10 
11 // time_point
12 
13 // Duration shall be an instance of duration.
14 
15 #include <chrono>
16 
main(int,char **)17 int main(int, char**)
18 {
19     typedef std::chrono::time_point<std::chrono::system_clock, int> T;
20     T t;
21 
22   return 0;
23 }
24