[SLP] Make getSameOpcode support different instructions if they have same semantics...
[llvm-project.git] / libcxx / test / std / time / time.duration / ratio.compile.fail.cpp
blob20298b772cb5cfac2a807df356dc893ee6085947
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 // Period shall be a specialization of ratio, diagnostic required.
15 #include <chrono>
17 template <int N, int D = 1>
18 class Ratio
20 public:
21 static const int num = N;
22 static const int den = D;
25 int main(int, char**)
27 typedef std::chrono::duration<int, Ratio<1> > D;
28 D d;
30 return 0;