blob: 0d5ba0c08f18021aad78261f794b5cf28aaf44d1 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
// <chrono>
// duration
// Test nested types
// typedef Rep rep;
// typedef Period period;
#include <chrono>
#include <ratio>
#include <type_traits>
#include "test_macros.h"
int main(int, char**)
{
typedef std::chrono::duration<long, std::ratio<3, 2> > D;
static_assert((std::is_same<D::rep, long>::value), "");
static_assert((std::is_same<D::period, std::ratio<3, 2> >::value), "");
return 0;
}