/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/ |
D | plus.pass.cpp | 43 constexpr bool testConstexprYears(std::chrono::year_month_day_last ymdl) in testConstexprYears() argument 46 if (static_cast<int>((ymdl ).year()) != 1) return false; in testConstexprYears() 47 if (static_cast<int>((ymdl + offset).year()) != 24) return false; in testConstexprYears() 48 if ( (ymdl + offset).month() != ymdl.month()) return false; in testConstexprYears() 49 if (static_cast<int>((offset + ymdl).year()) != 24) return false; in testConstexprYears() 50 if ( (offset + ymdl).month() != ymdl.month()) return false; in testConstexprYears() 55 constexpr bool testConstexprMonths(std::chrono::year_month_day_last ymdl) in testConstexprMonths() argument 58 if (static_cast<unsigned>((ymdl ).month()) != 1) return false; in testConstexprMonths() 59 if ( (ymdl + offset).year() != ymdl.year()) return false; in testConstexprMonths() 60 if (static_cast<unsigned>((ymdl + offset).month()) != 7) return false; in testConstexprMonths() [all …]
|
D | minus.pass.cpp | 33 constexpr bool testConstexprYears (std::chrono::year_month_day_last ymdl) in testConstexprYears() argument 35 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::years{10}; in testConstexprYears() 37 ym1.year() == std::chrono::year{static_cast<int>(ymdl.year()) - 10} in testConstexprYears() 38 && ym1.month() == ymdl.month() in testConstexprYears() 42 constexpr bool testConstexprMonths (std::chrono::year_month_day_last ymdl) in testConstexprMonths() argument 44 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::months{6}; in testConstexprMonths() 46 ym1.year() == ymdl.year() in testConstexprMonths() 47 && ym1.month() == std::chrono::month{static_cast<unsigned>(ymdl.month()) - 6} in testConstexprMonths()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ |
D | plus_minus_equal_year.pass.cpp | 55 year_month_day_last ymdl(year{i}, mdl); in main() local 56 assert(static_cast<int>((ymdl += years{2}).year()) == i + 2); in main() 57 assert(ymdl.month_day_last() == mdl); in main() 58 assert(static_cast<int>((ymdl ).year()) == i + 2); in main() 59 assert(ymdl.month_day_last() == mdl); in main() 60 assert(static_cast<int>((ymdl -= years{1}).year()) == i + 1); in main() 61 assert(ymdl.month_day_last() == mdl); in main() 62 assert(static_cast<int>((ymdl ).year()) == i + 1); in main() 63 assert(ymdl.month_day_last() == mdl); in main()
|
D | op_local_days.pass.cpp | 35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() local 36 constexpr local_days sd{ymdl}; in main() 42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() local 43 constexpr local_days sd{ymdl}; in main() 49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() local 50 constexpr local_days sd{ymdl}; in main() 56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main() local 57 local_days sd{ymdl}; in main()
|
D | op_sys_days.pass.cpp | 35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() local 36 constexpr sys_days sd{ymdl}; in main() 42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() local 43 constexpr sys_days sd{ymdl}; in main() 49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() local 50 constexpr sys_days sd{ymdl}; in main() 56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main() local 57 sys_days sd{ymdl}; in main()
|
D | month_day_last.pass.cpp | 35 year_month_day_last ymdl(year{1234}, month_day_last{month{i}}); in main() local 36 assert( static_cast<unsigned>(ymdl.month_day_last().month()) == i); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
D | op_local_days.pass.cpp | 35 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() local 36 constexpr local_days sd{ymdl}; in main() 42 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() local 43 constexpr local_days sd{ymdl}; in main() 49 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() local 50 constexpr local_days sd{ymdl}; in main() 56 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main() local 57 local_days sd{ymdl}; in main()
|
D | op_sys_days.pass.cpp | 64 year_month_weekday_last ymdl{year{1939}, std::chrono::November, weekday_last{Tuesday}}; in main() local 65 sys_days sd{ymdl}; 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 | 42 constexpr year_month_day_last ymdl{year{2019}, month_day_last{month{1}}}; in main() local 43 constexpr year_month_day ymd{ymdl}; in main() 52 constexpr year_month_day_last ymdl{year{1970}, month_day_last{month{4}}}; in main() local 53 constexpr year_month_day ymd{ymdl}; in main() 62 constexpr year_month_day_last ymdl{year{2000}, month_day_last{month{2}}}; in main() local 63 constexpr year_month_day ymd{ymdl}; in main() 72 year_month_day_last ymdl{year{1900}, month_day_last{month{2}}}; in main() local 73 year_month_day ymd{ymdl}; in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
D | year_month_day_last.pass.cpp | 67 year_month_day_last ymdl = year_month{y,m}/last; in main() 68 assert(ymdl.year() == y); in main() 69 assert(ymdl.month() == m); in main()
|
/external/libcxx/include/ |
D | chrono | 481 operator+(const year_month_day_last& ymdl, const months& dm) noexcept; 483 operator+(const months& dm, const year_month_day_last& ymdl) noexcept; 485 operator+(const year_month_day_last& ymdl, const years& dy) noexcept; 487 operator+(const years& dy, const year_month_day_last& ymdl) noexcept; 489 operator-(const year_month_day_last& ymdl, const months& dm) noexcept; 491 operator-(const year_month_day_last& ymdl, const years& dy) noexcept;
|