[mlir][PDLL] Allow (and ignore) `-D` tablegen macros. (#124166)
[llvm-project.git] / libcxx / test / std / utilities / ratio / ratio.arithmetic / ratio_add.compile.fail.cpp
blobabf75631f861d32fa6dc6e8f1105d7b1cfedc7b1
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 // test ratio_add
11 #include <ratio>
13 int main(int, char**)
15 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1;
16 typedef std::ratio<1, 1> R2;
17 typedef std::ratio_add<R1, R2>::type R;
19 return 0;