You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
581 B
C++
21 lines
581 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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_divide
|
|
|
|
#include <ratio>
|
|
|
|
int main(int, char**)
|
|
{
|
|
typedef std::ratio<0x7FFFFFFFFFFFFFFFLL, 1> R1;
|
|
typedef std::ratio<1, 2> R2;
|
|
typedef std::ratio_divide<R1, R2>::type R;
|
|
|
|
return 0;
|
|
}
|