/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/ |
D | plus.pass.cpp | 42 constexpr bool testConstexprYears(std::chrono::year_month_day_last ymdl) in testConstexprYears() 54 constexpr bool testConstexprMonths(std::chrono::year_month_day_last ymdl) in testConstexprMonths() 71 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 78 ASSERT_NOEXCEPT(std::declval<year_month_day_last>() + std::declval<months>()); in main() 79 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_day_last>()); in main() 81 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() + std::declval<… in main() 82 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<months>() + std::declval<year_month_da… in main() 84 static_assert(testConstexprMonths(year_month_day_last{year{1}, month_day_last{January}}), ""); in main() 86 year_month_day_last ym{year{1234}, month_day_last{January}}; in main() 89 year_month_day_last ym1 = ym + months{i}; in main() [all …]
|
D | comparisons.pass.cpp | 34 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 36 AssertComparisons6AreNoexcept<year_month_day_last>(); in main() 37 AssertComparisons6ReturnBool<year_month_day_last>(); in main() 43 year_month_day_last{year{1234}, month_day_last{January}}, in main() 44 year_month_day_last{year{1234}, month_day_last{January}}, in main() 49 year_month_day_last{year{1234}, month_day_last{January}}, in main() 50 year_month_day_last{year{1234}, month_day_last{February}}, in main() 55 year_month_day_last{year{1234}, month_day_last{January}}, in main() 56 year_month_day_last{year{1235}, month_day_last{January}}, in main() 61 year_month_day_last{year{1234}, month_day_last{January}}, in main() [all …]
|
D | minus.pass.cpp | 30 constexpr bool testConstexprYears (std::chrono::year_month_day_last ymdl) in testConstexprYears() 32 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::years{10}; in testConstexprYears() 39 constexpr bool testConstexprMonths (std::chrono::year_month_day_last ymdl) in testConstexprMonths() 41 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::months{6}; in testConstexprMonths() 53 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 60 …ASSERT_NOEXCEPT( std::declval<year_month_day_last>() - std::declval<… in main() 61 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() - std::declval<… in main() 63 … static_assert(testConstexprYears(year_month_day_last{year{1234}, month_day_last{December}}), ""); in main() 64 year_month_day_last ym{year{1234}, month_day_last{December}}; in main() 67 year_month_day_last ym1 = ym - years{i}; in main() [all …]
|
/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() 55 constexpr bool testConstexprMonths(std::chrono::year_month_day_last ymdl) in testConstexprMonths() 72 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 79 ASSERT_NOEXCEPT(std::declval<year_month_day_last>() + std::declval<months>()); in main() 80 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_day_last>()); in main() 82 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() + std::declval<… in main() 83 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<months>() + std::declval<year_month_da… in main() 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() 90 year_month_day_last ym1 = ym + months{i}; in main() [all …]
|
D | comparisons.pass.cpp | 35 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 37 AssertComparisons6AreNoexcept<year_month_day_last>(); in main() 38 AssertComparisons6ReturnBool<year_month_day_last>(); in main() 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() [all …]
|
D | minus.pass.cpp | 33 constexpr bool testConstexprYears (std::chrono::year_month_day_last ymdl) in testConstexprYears() 35 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::years{10}; in testConstexprYears() 42 constexpr bool testConstexprMonths (std::chrono::year_month_day_last ymdl) in testConstexprMonths() 44 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::months{6}; in testConstexprMonths() 56 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 63 …ASSERT_NOEXCEPT( std::declval<year_month_day_last>() - std::declval<… in main() 64 …ASSERT_SAME_TYPE(year_month_day_last, decltype(std::declval<year_month_day_last>() - std::declval<… in main() 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() 70 year_month_day_last ym1 = ym - years{i}; in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ |
D | day.pass.cpp | 29 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 31 ASSERT_NOEXCEPT( std::declval<const year_month_day_last>().day()); in main() 32 ASSERT_SAME_TYPE(day, decltype(std::declval<const year_month_day_last>().day())); in main() 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() [all …]
|
D | ok.pass.cpp | 28 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 32 ASSERT_NOEXCEPT( std::declval<const year_month_day_last>().ok()); in main() 33 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_day_last>().ok())); in main() 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 | plus_minus_equal_year.pass.cpp | 41 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<years>()); in main() 45 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<years>()); in main() 47 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() += std::declv… in main() 48 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() -= std::declv… in main() 50 …static_assert(testConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_las… in main() 55 year_month_day_last ymdl(year{i}, mdl); in main()
|
D | plus_minus_equal_month.pass.cpp | 41 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<months>()); in main() 45 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<months>()); in main() 47 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() += std::declv… in main() 48 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() -= std::declv… in main() 50 …static_assert(testConstexpr<year_month_day_last, months>(year_month_day_last{year{1234}, month_day… in main() 56 year_month_day_last ym(y, mdl); in main()
|
D | op_local_days.pass.cpp | 27 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 31 …NOEXCEPT( static_cast<local_days>(std::declval<const year_month_day_last>())); in main() 32 …AME_TYPE(local_days, decltype(static_cast<local_days>(std::declval<const year_month_day_last>()))); in main() 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 | 27 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 31 …ERT_NOEXCEPT( static_cast<sys_days>(std::declval<const year_month_day_last>())); in main() 32 …RT_SAME_TYPE(sys_days, decltype(static_cast<sys_days>(std::declval<const year_month_day_last>()))); in main() 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 | month.pass.cpp | 28 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 30 ASSERT_NOEXCEPT( std::declval<const year_month_day_last>().month()); in main() 31 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_day_last>().month())); in main() 35 year_month_day_last ymd(year{1234}, month_day_last{month{i}}); in main()
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ |
D | day.pass.cpp | 28 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 30 ASSERT_NOEXCEPT( std::declval<const year_month_day_last>().day()); in main() 31 ASSERT_SAME_TYPE(day, decltype(std::declval<const year_month_day_last>().day())); in main() 34 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 1}}}.day() == day{31}, ""); in main() 35 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 2}}}.day() == day{29}, ""); in main() 36 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 3}}}.day() == day{31}, ""); in main() 37 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 4}}}.day() == day{30}, ""); in main() 38 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 5}}}.day() == day{31}, ""); in main() 39 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 6}}}.day() == day{30}, ""); in main() 40 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 7}}}.day() == day{31}, ""); in main() [all …]
|
D | ok.pass.cpp | 27 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 31 ASSERT_NOEXCEPT( std::declval<const year_month_day_last>().ok()); in main() 32 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_day_last>().ok())); in main() 34 static_assert(!year_month_day_last{year{-32768}, month_day_last{month{}}}.ok(), ""); // both bad in main() 35 static_assert(!year_month_day_last{year{-32768}, month_day_last{January}}.ok(), ""); // Bad year in main() 36 … static_assert(!year_month_day_last{year{2019}, month_day_last{month{}}}.ok(), ""); // Bad month in main() 37 static_assert( year_month_day_last{year{2019}, month_day_last{January}}.ok(), ""); // All OK in main() 41 year_month_day_last ym{year{2019}, month_day_last{month{i}}}; in main() 48 year_month_day_last ym{year{i}, month_day_last{January}}; in main()
|
D | plus_minus_equal_year.pass.cpp | 40 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 43 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<years>()); in main() 44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<years>()); in main() 46 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() += std::declv… in main() 47 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() -= std::declv… in main() 49 …static_assert(testConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_las… in main() 54 year_month_day_last ymdl(year{i}, mdl); in main()
|
D | plus_minus_equal_month.pass.cpp | 40 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 43 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() += std::declval<months>()); in main() 44 ASSERT_NOEXCEPT(std::declval<year_month_day_last&>() -= std::declval<months>()); in main() 46 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() += std::declv… in main() 47 …ASSERT_SAME_TYPE(year_month_day_last&, decltype(std::declval<year_month_day_last&>() -= std::declv… in main() 49 …static_assert(testConstexpr<year_month_day_last, months>(year_month_day_last{year{1234}, month_day… in main() 55 year_month_day_last ym(y, mdl); in main()
|
D | op_sys_days.pass.cpp | 26 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 30 …ERT_NOEXCEPT( static_cast<sys_days>(std::declval<const year_month_day_last>())); in main() 31 …RT_SAME_TYPE(sys_days, decltype(static_cast<sys_days>(std::declval<const year_month_day_last>()))); in main() 34 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() 41 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() 48 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() 55 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
|
D | op_local_days.pass.cpp | 26 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 30 …NOEXCEPT( static_cast<local_days>(std::declval<const year_month_day_last>())); in main() 31 …AME_TYPE(local_days, decltype(static_cast<local_days>(std::declval<const year_month_day_last>()))); in main() 34 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() 41 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() 48 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() 55 year_month_day_last ymdl{year{1939}, month_day_last{std::chrono::November}}; in main()
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
D | year_month_day_last.pass.cpp | 48 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 57 ASSERT_SAME_TYPE(year_month_day_last, decltype(Feb2018/last)); in main() 67 year_month_day_last ymdl = year_month{y,m}/last; in main() 76 ASSERT_SAME_TYPE(year_month_day_last, decltype(year{2018}/month_day_last{February})); in main() 78 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/year{2018})); in main() 90 year_month_day_last ymdl1 = y/month_day_last{m}; in main() 91 year_month_day_last ymdl2 = month_day_last{m}/y; in main() 102 ASSERT_SAME_TYPE(year_month_day_last, decltype(2018/month_day_last{February})); in main() 104 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/2018)); in main() 116 year_month_day_last ymdl1 = i/month_day_last{m}; in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
D | year_month_day_last.pass.cpp | 48 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 57 ASSERT_SAME_TYPE(year_month_day_last, decltype(Feb2018/last)); in main() 67 year_month_day_last ymdl = year_month{y,m}/last; in main() 76 ASSERT_SAME_TYPE(year_month_day_last, decltype(year{2018}/month_day_last{February})); in main() 78 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/year{2018})); in main() 90 year_month_day_last ymdl1 = y/month_day_last{m}; in main() 91 year_month_day_last ymdl2 = month_day_last{m}/y; in main() 102 ASSERT_SAME_TYPE(year_month_day_last, decltype(2018/month_day_last{February})); in main() 104 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/2018)); in main() 116 year_month_day_last ymdl1 = i/month_day_last{m}; in main() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
D | op_local_days.pass.cpp | 26 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 30 …NOEXCEPT( static_cast<local_days>(std::declval<const year_month_day_last>())); in main() 31 …AME_TYPE(local_days, decltype(static_cast<local_days>(std::declval<const year_month_day_last>()))); in main() 34 constexpr year_month_day_last ymdl{year{1970}, month_day_last{std::chrono::January}}; in main() 41 constexpr year_month_day_last ymdl{year{2000}, month_day_last{std::chrono::January}}; in main() 48 constexpr year_month_day_last ymdl{year{1940}, month_day_last{std::chrono::January}}; in main() 55 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.ymwdlast/time.cal.ymwdlast.members/ |
D | op_local_days.pass.cpp | 27 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 31 …NOEXCEPT( static_cast<local_days>(std::declval<const year_month_day_last>())); in main() 32 …AME_TYPE(local_days, decltype(static_cast<local_days>(std::declval<const year_month_day_last>()))); in main() 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/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
D | ctor.year_month_day_last.pass.cpp | 35 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 38 ASSERT_NOEXCEPT(year_month_day{std::declval<const year_month_day_last>()}); in main() 41 constexpr year_month_day_last ymdl{year{2019}, month_day_last{month{1}}}; in main() 51 constexpr year_month_day_last ymdl{year{1970}, month_day_last{month{4}}}; in main() 61 constexpr year_month_day_last ymdl{year{2000}, month_day_last{month{2}}}; in main() 71 year_month_day_last ymdl{year{1900}, month_day_last{month{2}}}; 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 | 36 using year_month_day_last = std::chrono::year_month_day_last; in main() typedef 39 ASSERT_NOEXCEPT(year_month_day{std::declval<const year_month_day_last>()}); in main() 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()
|