blob: 250e532859e9d6879e4f03c89cdee3d662a40eac [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 <type_traits>
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;
}