brintos

brintos / llvm-project-archived public Read only

0
0
Text · 586 B · 8b00462 Raw
21 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// test ratio_subtract10 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_subtract<R1, R2>::type R;18 19  return 0;20}21