1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // test ratio: the absolute values of the template arguments N and D
10 // shall be representable by type intmax_t.
17 const std::intmax_t t1
= std::ratio
<1, 0x8000000000000000ULL
>::num
;