ratio_multiply.fail.cpp 585 B

1234567891011121314151617181920
  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. // test ratio_multiply
  9. #include <ratio>
  10. int main(int, char**)
  11. {
  12. typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1;
  13. typedef std::ratio<2, 1> R2;
  14. typedef std::ratio_multiply<R1, R2>::type R;
  15. return 0;
  16. }