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//===----------------------------------------------------------------------===//
8
9// test ratio_add
10
11#include <ratio>
12
13int main(int, char**)
14{
15 typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1;
16 typedef std::ratio<1, 1> R2;
17 typedef std::ratio_add<R1, R2>::type R;
18
19 return 0;
20}
21

source code of libcxx/test/std/utilities/ratio/ratio.arithmetic/ratio_add.compile.fail.cpp