[RISCV] Add MIPS P8700 processor (#119882)
[llvm-project.git] / libcxx / test / std / time / time.duration / positive_num.compile.fail.cpp
blob737576205cf075dec8dd011a70a15cd01e7001fc
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::num shall be positive, diagnostic required.
15 #include <chrono>
17 int main(int, char**)
19 typedef std::chrono::duration<int, std::ratio<5, -1> > D;
20 D d;
22 return 0;