1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
13 // duration() = default;
15 // Rep must be default initialized, not initialized with 0
20 #include "test_macros.h"
21 #include "../../rep.h"
28 assert(d
.count() == typename
D::rep());
29 #if TEST_STD_VER >= 11
31 static_assert(d2
.count() == typename
D::rep(), "");
37 test
<std::chrono::duration
<Rep
> >();