[SimplifyCFG] Always allow hoisting if all instructions match. (#97158)
[llvm-project.git] / libcxx / test / std / time / time.duration / time.duration.nonmember / op_mod_rep.compile.fail.cpp
blobf2a5885aba62814f3d907fae670b121051a57aa5
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 //===----------------------------------------------------------------------===//
9 // <chrono>
11 // duration
13 // template <class Rep1, class Period, class Rep2>
14 // duration<typename common_type<Rep1, Rep2>::type, Period>
15 // operator%(const duration<Rep1, Period>& d, const Rep2& s)
17 #include <chrono>
19 #include "../../rep.h"
21 int main(int, char**)
23 std::chrono::duration<Rep> d(Rep(15));
24 d = d % 5;
26 return 0;