/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
D | ok.pass.cpp | 27 using year_month_day = std::chrono::year_month_day; in main() typedef 31 ASSERT_NOEXCEPT( std::declval<const year_month_day>().ok()); in main() 32 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_day>().ok())); in main() 34 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main() 36 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main() 37 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main() 38 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main() 40 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main() 41 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main() 42 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main() [all …]
|
D | op.local_days.pass.cpp | 42 static_assert(year_month_day{local_days{year{2017}/January/0}} == year{2016}/December/31); in RunTheExample() 43 static_assert(year_month_day{local_days{year{2017}/January/31}} == year{2017}/January/31); in RunTheExample() 44 static_assert(year_month_day{local_days{year{2017}/January/32}} == year{2017}/February/1); in RunTheExample() 54 using year_month_day = std::chrono::year_month_day; in main() typedef 56 ASSERT_NOEXCEPT(local_days(std::declval<year_month_day>())); in main() 60 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() 64 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 68 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() 72 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 78 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() [all …]
|
D | op.sys_days.pass.cpp | 42 static_assert(year_month_day{sys_days{year{2017}/January/0}} == year{2016}/December/31); in RunTheExample() 43 static_assert(year_month_day{sys_days{year{2017}/January/31}} == year{2017}/January/31); in RunTheExample() 44 static_assert(year_month_day{sys_days{year{2017}/January/32}} == year{2017}/February/1); in RunTheExample() 54 using year_month_day = std::chrono::year_month_day; in main() typedef 56 ASSERT_NOEXCEPT(sys_days(std::declval<year_month_day>())); in main() 60 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() 64 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 68 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() 72 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 78 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() [all …]
|
D | plus_minus_equal_year.pass.cpp | 40 using year_month_day = std::chrono::year_month_day; in main() typedef 43 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<years>()); in main() 44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<years>()); in main() 46 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() += std::declval<years>(… in main() 47 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() -= std::declval<years>(… in main() 49 …static_assert(testConstexpr<year_month_day, years>(year_month_day{year{1}, month{1}, day{1}}), ""); in main() 55 year_month_day ym(year{i}, m, d); in main()
|
D | plus_minus_equal_month.pass.cpp | 40 using year_month_day = std::chrono::year_month_day; in main() typedef 43 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<months>()); in main() 44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<months>()); in main() 46 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() += std::declval<months>… in main() 47 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() -= std::declval<months>… in main() 49 …static_assert(testConstexpr<year_month_day, months>(year_month_day{year{1234}, month{1}, day{1}}),… in main() 55 year_month_day ym(y, month{i}, d); in main()
|
D | year.pass.cpp | 27 using year_month_day = std::chrono::year_month_day; in main() typedef 29 ASSERT_NOEXCEPT( std::declval<const year_month_day>().year()); in main() 30 ASSERT_SAME_TYPE(year, decltype(std::declval<const year_month_day>().year())); in main() 32 static_assert( year_month_day{}.year() == year{}, ""); in main() 36 year_month_day ym(year{i}, month{}, day{}); in main()
|
D | day.pass.cpp | 27 using year_month_day = std::chrono::year_month_day; in main() typedef 29 ASSERT_NOEXCEPT( std::declval<const year_month_day>().day()); in main() 30 ASSERT_SAME_TYPE(day, decltype(std::declval<const year_month_day>().day())); in main() 32 static_assert( year_month_day{}.day() == day{}, ""); in main() 36 year_month_day ymd(year{1234}, month{2}, day{i}); in main()
|
D | month.pass.cpp | 27 using year_month_day = std::chrono::year_month_day; in main() typedef 29 ASSERT_NOEXCEPT( std::declval<const year_month_day>().month()); in main() 30 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_day>().month())); in main() 32 static_assert( year_month_day{}.month() == month{}, ""); in main() 36 year_month_day ymd(year{1234}, month{i}, day{12}); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
D | ok.pass.cpp | 28 using year_month_day = std::chrono::year_month_day; in main() typedef 32 ASSERT_NOEXCEPT( std::declval<const year_month_day>().ok()); in main() 33 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_day>().ok())); in main() 35 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main() 37 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main() 38 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main() 39 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main() 41 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main() 42 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main() 43 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main() [all …]
|
D | op.sys_days.pass.cpp | 43 static_assert(year_month_day{sys_days{year{2017}/January/0}} == year{2016}/December/31); in RunTheExample() 44 static_assert(year_month_day{sys_days{year{2017}/January/31}} == year{2017}/January/31); in RunTheExample() 45 static_assert(year_month_day{sys_days{year{2017}/January/32}} == year{2017}/February/1); in RunTheExample() 55 using year_month_day = std::chrono::year_month_day; in main() typedef 57 ASSERT_NOEXCEPT(sys_days(std::declval<year_month_day>())); in main() 61 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() 65 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 69 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() 73 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 79 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() [all …]
|
D | op.local_days.pass.cpp | 43 static_assert(year_month_day{local_days{year{2017}/January/0}} == year{2016}/December/31); in RunTheExample() 44 static_assert(year_month_day{local_days{year{2017}/January/31}} == year{2017}/January/31); in RunTheExample() 45 static_assert(year_month_day{local_days{year{2017}/January/32}} == year{2017}/February/1); in RunTheExample() 55 using year_month_day = std::chrono::year_month_day; in main() typedef 57 ASSERT_NOEXCEPT(local_days(std::declval<year_month_day>())); in main() 61 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; in main() 65 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 69 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; in main() 73 static_assert( year_month_day{sd} == ymd, ""); // and back in main() 79 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; in main() [all …]
|
D | plus_minus_equal_year.pass.cpp | 41 using year_month_day = std::chrono::year_month_day; in main() typedef 44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<years>()); in main() 45 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<years>()); in main() 47 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() += std::declval<years>(… in main() 48 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() -= std::declval<years>(… in main() 50 …static_assert(testConstexpr<year_month_day, years>(year_month_day{year{1}, month{1}, day{1}}), ""); in main() 56 year_month_day ym(year{i}, m, d); in main()
|
D | plus_minus_equal_month.pass.cpp | 41 using year_month_day = std::chrono::year_month_day; in main() typedef 44 ASSERT_NOEXCEPT(std::declval<year_month_day&>() += std::declval<months>()); in main() 45 ASSERT_NOEXCEPT(std::declval<year_month_day&>() -= std::declval<months>()); in main() 47 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() += std::declval<months>… in main() 48 …ASSERT_SAME_TYPE(year_month_day&, decltype(std::declval<year_month_day&>() -= std::declval<months>… in main() 50 …static_assert(testConstexpr<year_month_day, months>(year_month_day{year{1234}, month{1}, day{1}}),… in main() 56 year_month_day ym(y, month{i}, d); in main()
|
D | day.pass.cpp | 28 using year_month_day = std::chrono::year_month_day; in main() typedef 30 ASSERT_NOEXCEPT( std::declval<const year_month_day>().day()); in main() 31 ASSERT_SAME_TYPE(day, decltype(std::declval<const year_month_day>().day())); in main() 33 static_assert( year_month_day{}.day() == day{}, ""); in main() 37 year_month_day ymd(year{1234}, month{2}, day{i}); in main()
|
D | year.pass.cpp | 28 using year_month_day = std::chrono::year_month_day; in main() typedef 30 ASSERT_NOEXCEPT( std::declval<const year_month_day>().year()); in main() 31 ASSERT_SAME_TYPE(year, decltype(std::declval<const year_month_day>().year())); in main() 33 static_assert( year_month_day{}.year() == year{}, ""); in main() 37 year_month_day ym(year{i}, month{}, day{}); in main()
|
D | month.pass.cpp | 28 using year_month_day = std::chrono::year_month_day; in main() typedef 30 ASSERT_NOEXCEPT( std::declval<const year_month_day>().month()); in main() 31 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_day>().month())); in main() 33 static_assert( year_month_day{}.month() == month{}, ""); in main() 37 year_month_day ymd(year{1234}, month{i}, day{12}); in main()
|
D | ctor.pass.cpp | 37 using year_month_day = std::chrono::year_month_day; in main() typedef 39 ASSERT_NOEXCEPT(year_month_day{}); in main() 40 ASSERT_NOEXCEPT(year_month_day{year{1}, month{1}, day{1}}); in main() 44 constexpr year_month_day ym0{}; in main() 50 constexpr year_month_day ym1{year{2019}, January, day{12}}; in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ |
D | comparisons.pass.cpp | 38 using year_month_day = std::chrono::year_month_day; in main() typedef 40 AssertComparisons6AreNoexcept<year_month_day>(); in main() 41 AssertComparisons6ReturnBool<year_month_day>(); in main() 47 year_month_day{year{1234}, January, day{1}}, in main() 48 year_month_day{year{1234}, January, day{1}}, in main() 53 year_month_day{year{1234}, January, day{1}}, in main() 54 year_month_day{year{1234}, January, day{2}}, in main() 59 year_month_day{year{1234}, January, day{1}}, in main() 60 year_month_day{year{1234}, February, day{1}}, in main() 65 year_month_day{year{1234}, January, day{1}}, in main() [all …]
|
D | plus.pass.cpp | 35 constexpr bool testConstexprYears(std::chrono::year_month_day ym) in testConstexprYears() 45 constexpr bool testConstexprMonths(std::chrono::year_month_day ym) in testConstexprMonths() 62 using year_month_day = std::chrono::year_month_day; in main() typedef 65 ASSERT_NOEXCEPT(std::declval<year_month_day>() + std::declval<months>()); in main() 66 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_day>()); in main() 68 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() + std::declval<months>())… in main() 69 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<months>() + std::declval<year_month_day>())… in main() 71 static_assert(testConstexprMonths(year_month_day{year{1}, month{1}, day{1}}), ""); in main() 73 year_month_day ym{year{1234}, std::chrono::January, day{12}}; in main() 76 year_month_day ym1 = ym + months{i}; in main() [all …]
|
D | minus.pass.cpp | 28 …std::chrono::year_month_day ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::day{12… in test_constexpr() 29 std::chrono::year_month_day ym1 = ym0 - std::chrono::years{10}; in test_constexpr() 42 using year_month_day = std::chrono::year_month_day; in main() typedef 45 … ASSERT_NOEXCEPT( std::declval<year_month_day>() - std::declval<years>()); in main() 46 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() - std::declval<years>())); in main() 52 year_month_day ym{year{1234}, January, day{10}}; in main() 55 year_month_day ym1 = ym - years{i}; in main()
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ |
D | comparisons.pass.cpp | 37 using year_month_day = std::chrono::year_month_day; in main() typedef 39 AssertComparisons6AreNoexcept<year_month_day>(); in main() 40 AssertComparisons6ReturnBool<year_month_day>(); in main() 46 year_month_day{year{1234}, January, day{1}}, in main() 47 year_month_day{year{1234}, January, day{1}}, in main() 52 year_month_day{year{1234}, January, day{1}}, in main() 53 year_month_day{year{1234}, January, day{2}}, in main() 58 year_month_day{year{1234}, January, day{1}}, in main() 59 year_month_day{year{1234}, February, day{1}}, in main() 64 year_month_day{year{1234}, January, day{1}}, in main() [all …]
|
D | plus.pass.cpp | 34 constexpr bool testConstexprYears(std::chrono::year_month_day ym) in testConstexprYears() 44 constexpr bool testConstexprMonths(std::chrono::year_month_day ym) in testConstexprMonths() 61 using year_month_day = std::chrono::year_month_day; in main() typedef 64 ASSERT_NOEXCEPT(std::declval<year_month_day>() + std::declval<months>()); in main() 65 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_day>()); in main() 67 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() + std::declval<months>())… in main() 68 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<months>() + std::declval<year_month_day>())… in main() 70 static_assert(testConstexprMonths(year_month_day{year{1}, month{1}, day{1}}), ""); in main() 72 year_month_day ym{year{1234}, std::chrono::January, day{12}}; in main() 75 year_month_day ym1 = ym + months{i}; in main() [all …]
|
D | minus.pass.cpp | 25 …std::chrono::year_month_day ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::day{12… in test_constexpr() 26 std::chrono::year_month_day ym1 = ym0 - std::chrono::years{10}; in test_constexpr() 39 using year_month_day = std::chrono::year_month_day; in main() typedef 42 … ASSERT_NOEXCEPT( std::declval<year_month_day>() - std::declval<years>()); in main() 43 …ASSERT_SAME_TYPE(year_month_day, decltype(std::declval<year_month_day>() - std::declval<years>())); in main() 49 year_month_day ym{year{1234}, January, day{10}}; in main() 52 year_month_day ym1 = ym - years{i}; in main()
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
D | year_month_day.pass.cpp | 52 using year_month_day = std::chrono::year_month_day; in main() typedef 59 ASSERT_SAME_TYPE(year_month_day, decltype(Feb2018/day{2})); in main() 72 year_month_day ymd = ym/d; in main() 82 ASSERT_SAME_TYPE(year_month_day, decltype(Feb2018/2)); in main() 95 year_month_day ymd = ym/k; in main() 105 ASSERT_SAME_TYPE(year_month_day, decltype(Feb2018/2)); in main() 118 year_month_day ymd = ym/k; in main() 130 ASSERT_SAME_TYPE(year_month_day, decltype(year{2018}/month_day{February, day{2}})); in main() 132 ASSERT_SAME_TYPE(year_month_day, decltype(month_day{February, day{2}}/year{2018})); in main() 147 year_month_day ymd1 = y/md; in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
D | year_month_day.pass.cpp | 53 using year_month_day = std::chrono::year_month_day; in main() typedef 60 ASSERT_SAME_TYPE(year_month_day, decltype(Feb2018/day{2})); in main() 73 year_month_day ymd = ym/d; in main() 83 ASSERT_SAME_TYPE(year_month_day, decltype(Feb2018/2)); in main() 96 year_month_day ymd = ym/k; in main() 106 ASSERT_SAME_TYPE(year_month_day, decltype(Feb2018/2)); in main() 119 year_month_day ymd = ym/k; in main() 131 ASSERT_SAME_TYPE(year_month_day, decltype(year{2018}/month_day{February, day{2}})); in main() 133 ASSERT_SAME_TYPE(year_month_day, decltype(month_day{February, day{2}}/year{2018})); in main() 148 year_month_day ymd1 = y/md; in main() [all …]
|