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& operator/=(const rep& rhs);
18 #include "test_macros.h"
19 #include "../../rep.h"
22 constexpr bool test_constexpr()
24 std::chrono::seconds
s(15);
26 return s
.count() == 3;
33 std::chrono::nanoseconds
ns(15);
35 assert(ns
.count() == 3);
39 static_assert(test_constexpr(), "");
42 #if TEST_STD_VER >= 11
44 std::chrono::nanoseconds
d(5);
47 assert(d
.count() == 5);