blob: 30f92863be2d77905fba8e08cd2864a4f960ae0a [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>
#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;
}