summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/ratio/ratio.arithmetic/ratio_subtract.fail.cpp
blob: 8b00462dc48ed62e665b5f1d93635d9f0b94a860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// test ratio_subtract

#include <ratio>

int main(int, char**)
{
    typedef std::ratio<-0x7FFFFFFFFFFFFFFFLL, 1> R1;
    typedef std::ratio<1, 1> R2;
    typedef std::ratio_subtract<R1, R2>::type R;

  return 0;
}
OpenPOWER on IntegriCloud