/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
D | year_month_day_last.pass.cpp | 47 using month_day_last = std::chrono::month_day_last; in main() typedef 75 ASSERT_NOEXCEPT ( year{2018}/month_day_last{February}); in main() 76 ASSERT_SAME_TYPE(year_month_day_last, decltype(year{2018}/month_day_last{February})); in main() 77 ASSERT_NOEXCEPT ( month_day_last{February}/year{2018}); in main() 78 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/year{2018})); in main() 80 static_assert((year{2018}/month_day_last{February}).month() == February, ""); in main() 81 static_assert((year{2018}/month_day_last{February}).year() == year{2018}, ""); in main() 82 static_assert((month_day_last{February}/year{2018}).month() == February, ""); in main() 83 static_assert((month_day_last{February}/year{2018}).year() == year{2018}, ""); in main() 90 year_month_day_last ymdl1 = y/month_day_last{m}; in main() [all …]
|
D | month_day_last.pass.cpp | 53 using month_day_last = std::chrono::month_day_last; in main() typedef 58 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main() 59 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main() 69 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main() 71 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main() 79 month_day_last mdl1 = last/m; in main() 80 month_day_last mdl2 = m/last; in main() 89 ASSERT_SAME_TYPE(month_day_last, decltype(last/2)); in main() 91 ASSERT_SAME_TYPE(month_day_last, decltype(2/last)); in main() 99 month_day_last mdl1 = last/i; in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ |
D | day.pass.cpp | 28 using month_day_last = std::chrono::month_day_last; in main() typedef 35 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 1}}}.day() == day{31}, ""); in main() 36 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 2}}}.day() == day{29}, ""); in main() 37 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 3}}}.day() == day{31}, ""); in main() 38 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 4}}}.day() == day{30}, ""); in main() 39 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 5}}}.day() == day{31}, ""); in main() 40 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 6}}}.day() == day{30}, ""); in main() 41 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 7}}}.day() == day{31}, ""); in main() 42 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 8}}}.day() == day{31}, ""); in main() 43 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 9}}}.day() == day{30}, ""); in main() [all …]
|
D | ctor.pass.cpp | 35 using month_day_last = std::chrono::month_day_last; in main() typedef 38 ASSERT_NOEXCEPT(year_month_day_last{year{1}, month_day_last{month{1}}}); in main() 42 constexpr year_month_day_last ymdl0{year{}, month_day_last{month{}}}; in main() 45 static_assert( ymdl0.month_day_last() == month_day_last{month{}}, ""); in main() 48 constexpr year_month_day_last ymdl1{year{2019}, month_day_last{January}}; in main() 51 static_assert( ymdl1.month_day_last() == month_day_last{January}, ""); in main()
|
D | ok.pass.cpp | 27 using month_day_last = std::chrono::month_day_last; in main() typedef 35 static_assert(!year_month_day_last{year{-32768}, month_day_last{month{}}}.ok(), ""); // both bad in main() 36 static_assert(!year_month_day_last{year{-32768}, month_day_last{January}}.ok(), ""); // Bad year in main() 37 … static_assert(!year_month_day_last{year{2019}, month_day_last{month{}}}.ok(), ""); // Bad month in main() 38 static_assert( year_month_day_last{year{2019}, month_day_last{January}}.ok(), ""); // All OK in main() 42 year_month_day_last ym{year{2019}, month_day_last{month{i}}}; in main() 49 year_month_day_last ym{year{i}, month_day_last{January}}; in main()
|
D | month_day_last.pass.cpp | 27 using month_day_last = std::chrono::month_day_last; in main() typedef 30 …ERT_NOEXCEPT( std::declval<const year_month_day_last>().month_day_last()); in main() 31 …ASSERT_SAME_TYPE(month_day_last, decltype(std::declval<const year_month_day_last>().month_day_last… in main() 35 year_month_day_last ymdl(year{1234}, month_day_last{month{i}}); in main() 36 assert( static_cast<unsigned>(ymdl.month_day_last().month()) == i); in main()
|
D | plus_minus_equal_year.pass.cpp | 40 using month_day_last = std::chrono::month_day_last; in main() typedef 50 …stConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_last{month{1}}}), "… in main() 54 month_day_last mdl{month{2}}; in main() 57 assert(ymdl.month_day_last() == mdl); in main() 59 assert(ymdl.month_day_last() == mdl); in main() 61 assert(ymdl.month_day_last() == mdl); in main() 63 assert(ymdl.month_day_last() == mdl); in main()
|
D | op_local_days.pass.cpp | 26 using month_day_last = std::chrono::month_day_last; in main() typedef 35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() 42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() 49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() 56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
|
D | op_sys_days.pass.cpp | 26 using month_day_last = std::chrono::month_day_last; in main() typedef 35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() 42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() 49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() 56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
|
D | plus_minus_equal_month.pass.cpp | 40 using month_day_last = std::chrono::month_day_last; in main() typedef 50 …nstexpr<year_month_day_last, months>(year_month_day_last{year{1234}, month_day_last{month{1}}}), "… in main() 55 month_day_last mdl{month{i}}; in main()
|
D | year.pass.cpp | 27 using month_day_last = std::chrono::month_day_last; in main() typedef 35 year_month_day_last ym(year{i}, month_day_last{month{}}); in main()
|
D | month.pass.cpp | 27 using month_day_last = std::chrono::month_day_last; in main() typedef 35 year_month_day_last ymd(year{1234}, month_day_last{month{i}}); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/ |
D | comparisons.pass.cpp | 34 using month_day_last = std::chrono::month_day_last; in main() typedef 44 year_month_day_last{year{1234}, month_day_last{January}}, in main() 45 year_month_day_last{year{1234}, month_day_last{January}}, in main() 50 year_month_day_last{year{1234}, month_day_last{January}}, in main() 51 year_month_day_last{year{1234}, month_day_last{February}}, in main() 56 year_month_day_last{year{1234}, month_day_last{January}}, in main() 57 year_month_day_last{year{1235}, month_day_last{January}}, in main() 62 year_month_day_last{year{1234}, month_day_last{January}}, in main() 63 year_month_day_last{year{1234}, month_day_last{February}}, in main() 68 year_month_day_last{year{1234}, month_day_last{February}}, in main() [all …]
|
D | minus.pass.cpp | 55 using month_day_last = std::chrono::month_day_last; in main() typedef 66 … static_assert(testConstexprYears(year_month_day_last{year{1234}, month_day_last{December}}), ""); in main() 67 year_month_day_last ym{year{1234}, month_day_last{December}}; in main() 80 … static_assert(testConstexprMonths(year_month_day_last{year{1234}, month_day_last{December}}), ""); in main() 82 year_month_day_last ym{year{1234}, month_day_last{December}}; in main()
|
D | plus.pass.cpp | 71 using month_day_last = std::chrono::month_day_last; in main() typedef 85 static_assert(testConstexprMonths(year_month_day_last{year{1}, month_day_last{January}}), ""); in main() 87 year_month_day_last ym{year{1234}, month_day_last{January}}; in main() 107 static_assert(testConstexprYears(year_month_day_last{year{1}, month_day_last{January}}), ""); in main() 109 year_month_day_last ym{year{1234}, month_day_last{January}}; in main()
|
D | streaming.pass.cpp | 34 using month_day_last = std::chrono::month_day_last; in main() typedef 36 std::cout << year_month_day_last{year{2018}, month_day_last{month{3}}}; in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/ |
D | ok.pass.cpp | 26 using month_day_last = std::chrono::month_day_last; in main() typedef 28 ASSERT_NOEXCEPT( std::declval<const month_day_last>().ok()); in main() 29 ASSERT_SAME_TYPE(bool, decltype(std::declval<const month_day_last>().ok())); in main() 31 static_assert(!month_day_last{month{}}.ok(), ""); in main() 32 static_assert( month_day_last{std::chrono::May}.ok(), ""); in main() 36 month_day_last mdl{month{i}}; in main() 43 month_day_last mdl{month{i}}; in main()
|
D | comparisons.pass.cpp | 31 using month_day_last = std::chrono::month_day_last; in main() typedef 33 AssertComparisons6AreNoexcept<month_day_last>(); in main() 34 AssertComparisons6ReturnBool<month_day_last>(); in main() 36 static_assert( testComparisons6Values<month_day_last>(month{1}, month{1}), ""); in main() 37 static_assert( testComparisons6Values<month_day_last>(month{1}, month{2}), ""); in main() 42 assert((testComparisons6Values<month_day_last>(month{i}, month{j}))); in main()
|
D | month.pass.cpp | 26 using month_day_last = std::chrono::month_day_last; in main() typedef 28 ASSERT_NOEXCEPT( std::declval<const month_day_last>().month()); in main() 29 ASSERT_SAME_TYPE(month, decltype(std::declval<const month_day_last>().month())); in main() 31 static_assert( month_day_last{month{}}.month() == month{}, ""); in main() 35 month_day_last mdl(month{i}); in main()
|
D | ctor.pass.cpp | 30 using month_day_last = std::chrono::month_day_last; in main() typedef 32 ASSERT_NOEXCEPT(month_day_last{month{1}}); in main() 34 constexpr month_day_last md0{month{}}; in main() 38 constexpr month_day_last md1{std::chrono::January}; in main()
|
D | types.pass.cpp | 23 using month_day_last = std::chrono::month_day_last; in main() typedef 25 static_assert(std::is_trivially_copyable_v<month_day_last>, ""); in main() 26 static_assert(std::is_standard_layout_v<month_day_last>, ""); in main()
|
D | streaming.pass.cpp | 31 using month_day_last = std::chrono::month_day_last; in main() typedef 33 std::cout << month_day_last{month{1}}; in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
D | op_local_days.pass.cpp | 26 using month_day_last = std::chrono::month_day_last; in main() typedef 35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() 42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() 49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() 56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
D | ctor.year_month_day_last.pass.cpp | 35 using month_day_last = std::chrono::month_day_last; in main() typedef 42 constexpr year_month_day_last ymdl{year{2019}, month_day_last{month{1}}}; in main() 52 constexpr year_month_day_last ymdl{year{1970}, month_day_last{month{4}}}; in main() 62 constexpr year_month_day_last ymdl{year{2000}, month_day_last{month{2}}}; in main() 72 year_month_day_last ymdl{year{1900}, month_day_last{month{2}}}; in main()
|
/external/libcxx/include/ |
D | chrono | 405 // 25.8.10, class month_day_last // C++20 406 class month_day_last; 408 constexpr bool operator==(const month_day_last& x, const month_day_last& y) noexcept; 409 constexpr bool operator!=(const month_day_last& x, const month_day_last& y) noexcept; 410 constexpr bool operator< (const month_day_last& x, const month_day_last& y) noexcept; 411 constexpr bool operator> (const month_day_last& x, const month_day_last& y) noexcept; 412 constexpr bool operator<=(const month_day_last& x, const month_day_last& y) noexcept; 413 constexpr bool operator>=(const month_day_last& x, const month_day_last& y) noexcept; 549 constexpr month_day_last 551 constexpr month_day_last [all …]
|