diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-10-16 02:40:42 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-10-16 02:40:42 +0000 |
commit | 7f20dc6854ae6312cbc3dbaafa931517015c0b28 (patch) | |
tree | 337d02bb52de14413703f20d1054bc481fe7e8ee /test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/month.pass.cpp | |
parent | 9bc5d8e1baf71c4094630de591130fde873abd39 (diff) |
Revert r344529 "Implement the first part of the calendar support for C++20"
Revert r344535 "Wrap up the new chrono literals in an #ifdef..."
Revert r344546 "Mark a couple of test cases as 'C++17-only'..."
Some of the buildbot failures were masked by another error,
and this one was probably missed.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@344580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/month.pass.cpp')
-rw-r--r-- | test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/month.pass.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/month.pass.cpp b/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/month.pass.cpp deleted file mode 100644 index 5602d259d..000000000 --- a/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/month.pass.cpp +++ /dev/null @@ -1,41 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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 - -// <chrono> -// class year_month_weekday_last; - -// constexpr chrono::month month() const noexcept; -// Returns: wd_ - -#include <chrono> -#include <type_traits> -#include <cassert> - -#include "test_macros.h" - -int main() -{ - using year = std::chrono::year; - using month = std::chrono::month; - using weekday = std::chrono::weekday; - using weekday_last = std::chrono::weekday_last; - using year_month_weekday_last = std::chrono::year_month_weekday_last; - - ASSERT_NOEXCEPT( std::declval<const year_month_weekday_last>().month()); - ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_weekday_last>().month())); - - static_assert( year_month_weekday_last{year{}, month{}, weekday_last{weekday{}}}.month() == month{}, ""); - - for (unsigned i = 1; i <= 50; ++i) - { - year_month_weekday_last ymd(year{1234}, month{i}, weekday_last{weekday{}}); - assert( static_cast<unsigned>(ymd.month()) == i); - } -} |