blob: 38c9d68eacb88c39d7c424fa15be8d01029c5484 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: *
// <chrono>
// class year_month_day;
// constexpr year_month_day(const sys_days& dp) noexcept;
//
// Effects: Constructs an object of type year_month_day that corresponds
// to the date represented by dp
//
// Remarks: For any value ymd of type year_month_day for which ymd.ok() is true,
// ymd == year_month_day{sys_days{ymd}} is true.
//
// constexpr chrono::year year() const noexcept;
// constexpr chrono::month month() const noexcept;
// constexpr bool ok() const noexcept;
#include <chrono>
#include <type_traits>
#include <cassert>
#include "test_macros.h"
int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
using day = std::chrono::day;
// using sys_days = std::chrono::sys_days;
using year_month_day = std::chrono::year_month_day;
// ASSERT_NOEXCEPT(year_month_day{std::declval<const sys_days>()});
assert(false);
}