blob: f8bebc8624dfadd6a0959ad51733c1d944ba86ed [file] [log] [blame]
Howard Hinnant94b2dd02010-08-22 00:59:46 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// 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
Howard Hinnant94b2dd02010-08-22 00:59:46 +00006//
7//===----------------------------------------------------------------------===//
8
9// test ratio: the absolute values of the template arguments N and D
10// shall be representable by type intmax_t.
11
12#include <ratio>
13#include <cstdint>
14
JF Bastien2df59c52019-02-04 20:31:13 +000015int main(int, char**)
Howard Hinnant94b2dd02010-08-22 00:59:46 +000016{
17 const std::intmax_t t1 = std::ratio<0x8000000000000000ULL, 1>::num;
JF Bastien2df59c52019-02-04 20:31:13 +000018
19 return 0;
Howard Hinnant94b2dd02010-08-22 00:59:46 +000020}