Home
last modified time | relevance | path

Searched refs:year_month_weekday (Results 1 – 25 of 41) sorted by relevance

12

/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dcomparisons.pass.cpp32 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
34 AssertComparisons2AreNoexcept<year_month_weekday>(); in main()
35 AssertComparisons2ReturnBool<year_month_weekday>(); in main()
42 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
43 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
48 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
49 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 2}}, in main()
54 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
55 year_month_weekday{year{1234}, February, weekday_indexed{Tuesday, 1}}, in main()
60 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
[all …]
Dplus.pass.cpp35 constexpr bool testConstexprYears(std::chrono::year_month_weekday ym) in testConstexprYears()
45 constexpr bool testConstexprMonths(std::chrono::year_month_weekday ym) in testConstexprMonths()
61 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
69 ASSERT_NOEXCEPT(std::declval<year_month_weekday>() + std::declval<months>()); in main()
70 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_weekday>()); in main()
72 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() + std::declval<mo… in main()
73 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<months>() + std::declval<year_month_wee… in main()
75 …static_assert(testConstexprMonths(year_month_weekday{year{1}, January, weekday_indexed{Tuesday, 1}… in main()
77 year_month_weekday ym{year{1234}, January, weekday_indexed{Tuesday, 3}}; in main()
80 year_month_weekday ym1 = ym + months{i}; in main()
[all …]
Dminus.pass.cpp31 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::we… in testConstexprYears()
32 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::years{10}; in testConstexprYears()
43 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::November, std::chrono::w… in testConstexprMonths()
44 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::months{6}; in testConstexprMonths()
60 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
68 …ASSERT_NOEXCEPT( std::declval<year_month_weekday>() - std::declval<ye… in main()
69 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() - std::declval<ye… in main()
73 year_month_weekday ym{year{1234}, November, weekday_indexed{Tuesday, 1}}; in main()
76 year_month_weekday ym1 = ym - years{i}; in main()
85 …ASSERT_NOEXCEPT( std::declval<year_month_weekday>() - std::declval<mo… in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dcomparisons.pass.cpp31 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
33 AssertComparisons2AreNoexcept<year_month_weekday>(); in main()
34 AssertComparisons2ReturnBool<year_month_weekday>(); in main()
41 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
42 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
47 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
48 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 2}}, in main()
53 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
54 year_month_weekday{year{1234}, February, weekday_indexed{Tuesday, 1}}, in main()
59 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
[all …]
Dplus.pass.cpp34 constexpr bool testConstexprYears(std::chrono::year_month_weekday ym) in testConstexprYears()
44 constexpr bool testConstexprMonths(std::chrono::year_month_weekday ym) in testConstexprMonths()
60 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
68 ASSERT_NOEXCEPT(std::declval<year_month_weekday>() + std::declval<months>()); in main()
69 ASSERT_NOEXCEPT(std::declval<months>() + std::declval<year_month_weekday>()); in main()
71 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() + std::declval<mo… in main()
72 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<months>() + std::declval<year_month_wee… in main()
74 …static_assert(testConstexprMonths(year_month_weekday{year{1}, January, weekday_indexed{Tuesday, 1}… in main()
76 year_month_weekday ym{year{1234}, January, weekday_indexed{Tuesday, 3}}; in main()
79 year_month_weekday ym1 = ym + months{i}; in main()
[all …]
Dminus.pass.cpp29 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::we… in testConstexprYears()
30 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::years{10}; in testConstexprYears()
41 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::November, std::chrono::w… in testConstexprMonths()
42 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::months{6}; in testConstexprMonths()
58 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
66 …ASSERT_NOEXCEPT( std::declval<year_month_weekday>() - std::declval<ye… in main()
67 …ASSERT_SAME_TYPE(year_month_weekday, decltype(std::declval<year_month_weekday>() - std::declval<ye… in main()
71 year_month_weekday ym{year{1234}, November, weekday_indexed{Tuesday, 1}}; in main()
74 year_month_weekday ym1 = ym - years{i}; in main()
83 …ASSERT_NOEXCEPT( std::declval<year_month_weekday>() - std::declval<mo… in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dok.pass.cpp30 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
41 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().ok()); in main()
42 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday>().ok())); in main()
44 static_assert(!year_month_weekday{}.ok(), ""); in main()
46 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main()
48 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
49 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
50 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main()
52 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
53 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main()
[all …]
Dop.sys_days.pass.cpp35 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
37 ASSERT_NOEXCEPT(sys_days(std::declval<year_month_weekday>())); in main()
40 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
44 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
48 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
52 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
58 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
62 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
66 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
70 assert( year_month_weekday{sd} == ymwd); // and back in main()
Dop.local_days.pass.cpp35 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
37 ASSERT_NOEXCEPT(local_days(std::declval<year_month_weekday>())); in main()
40 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
44 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
48 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
52 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
58 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
62 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
66 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
70 assert( year_month_weekday{sd} == ymwd); // and back in main()
Dplus_minus_equal_month.pass.cpp41 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
45 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() += std::declval… in main()
46 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval… in main()
48 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() -= std::declval… in main()
49 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval… in main()
52 …static_assert(testConstexpr<year_month_weekday, months>(year_month_weekday{year{1234}, month{1}, w… in main()
57 year_month_weekday ymwd(y, month{i}, weekday_indexed{Tuesday, 2}); in main()
Dplus_minus_equal_year.pass.cpp41 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
44 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() += std::declval… in main()
45 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval… in main()
47 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() -= std::declval… in main()
48 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval… in main()
53 …static_assert(testConstexpr<year_month_weekday, years>(year_month_weekday{year{1}, January, weekda… in main()
57 year_month_weekday ymwd(year{i}, January, weekday_indexed{Tuesday, 2}); in main()
Dctor.local_days.pass.cpp38 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
40 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const local_days>()}); in main()
44 constexpr year_month_weekday ymwd{sd}; in main()
52 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
57 constexpr year_month_weekday ymwd{sd}; in main()
65 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
71 constexpr year_month_weekday ymwd{sd}; in main()
79 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
84 year_month_weekday ymwd{sd}; in main()
92 assert( ymwd == year_month_weekday{local_days{ymwd}}); // round trip in main()
Dctor.sys_days.pass.cpp37 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
39 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const sys_days>()}); in main()
43 constexpr year_month_weekday ymwd{sd}; in main()
51 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
56 constexpr year_month_weekday ymwd{sd}; in main()
64 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
70 constexpr year_month_weekday ymwd{sd}; in main()
78 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
83 year_month_weekday ymwd{sd}; in main()
91 assert( ymwd == year_month_weekday{sys_days{ymwd}}); // round trip in main()
Dweekday_indexed.pass.cpp28 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
30 …ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().weekday_indexe… in main()
31 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const year_month_weekday>().weekday_indexe… in main()
33 static_assert( year_month_weekday{}.weekday_indexed() == weekday_indexed{}, ""); in main()
37 year_month_weekday ymwd0(year{1234}, month{2}, weekday_indexed{weekday{i}, 1}); in main()
41 year_month_weekday ymwd1(year{1234}, month{2}, weekday_indexed{weekday{2}, i}); in main()
Dyear.pass.cpp27 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
29 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().year()); in main()
30 ASSERT_SAME_TYPE(year, decltype(std::declval<const year_month_weekday>().year())); in main()
32 static_assert( year_month_weekday{}.year() == year{}, ""); in main()
36 year_month_weekday ym(year{i}, month{1}, weekday_indexed{}); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dok.pass.cpp29 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
34 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().ok()); in main()
35 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday>().ok())); in main()
37 static_assert(!year_month_weekday{}.ok(), ""); in main()
39 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main()
41 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
42 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
43 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main()
45 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
46 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main()
[all …]
Dop.sys_days.pass.cpp36 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
38 ASSERT_NOEXCEPT(sys_days(std::declval<year_month_weekday>())); in main()
41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
45 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
53 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
63 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
71 assert( year_month_weekday{sd} == ymwd); // and back in main()
Dop.local_days.pass.cpp36 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
38 ASSERT_NOEXCEPT(local_days(std::declval<year_month_weekday>())); in main()
41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main()
45 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main()
53 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main()
63 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main()
67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main()
71 assert( year_month_weekday{sd} == ymwd); // and back in main()
Dplus_minus_equal_year.pass.cpp42 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
45 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() += std::declval… in main()
46 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval… in main()
48 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() -= std::declval… in main()
49 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval… in main()
54 …static_assert(testConstexpr<year_month_weekday, years>(year_month_weekday{year{1}, January, weekda… in main()
58 year_month_weekday ymwd(year{i}, January, weekday_indexed{Tuesday, 2}); in main()
Dplus_minus_equal_month.pass.cpp42 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
46 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() += std::declval… in main()
47 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval… in main()
49 …ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() -= std::declval… in main()
50 …ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() -= std::declval… in main()
53 …static_assert(testConstexpr<year_month_weekday, months>(year_month_weekday{year{1234}, month{1}, w… in main()
58 year_month_weekday ymwd(y, month{i}, weekday_indexed{Tuesday, 2}); in main()
Dctor.sys_days.pass.cpp38 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
40 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const sys_days>()}); in main()
44 constexpr year_month_weekday ymwd{sd}; in main()
52 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
57 constexpr year_month_weekday ymwd{sd}; in main()
65 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
71 constexpr year_month_weekday ymwd{sd}; in main()
79 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main()
84 year_month_weekday ymwd{sd}; in main()
92 assert( ymwd == year_month_weekday{sys_days{ymwd}}); // round trip in main()
Dctor.local_days.pass.cpp39 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
41 ASSERT_NOEXCEPT(year_month_weekday{std::declval<const local_days>()}); in main()
45 constexpr year_month_weekday ymwd{sd}; in main()
53 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
58 constexpr year_month_weekday ymwd{sd}; in main()
66 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
72 constexpr year_month_weekday ymwd{sd}; in main()
80 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main()
85 year_month_weekday ymwd{sd}; in main()
93 assert( ymwd == year_month_weekday{local_days{ymwd}}); // round trip in main()
Dweekday_indexed.pass.cpp29 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
31 …ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().weekday_indexe… in main()
32 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const year_month_weekday>().weekday_indexe… in main()
34 static_assert( year_month_weekday{}.weekday_indexed() == weekday_indexed{}, ""); in main()
38 year_month_weekday ymwd0(year{1234}, month{2}, weekday_indexed{weekday{i}, 1}); in main()
41 year_month_weekday ymwd1(year{1234}, month{2}, weekday_indexed{weekday{2}, i}); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_weekday.pass.cpp46 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
60 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb2018/weekday_indexed{Tuesday, 2})); in main()
74 year_month_weekday ymd = year_month{y,m}/weekday_indexed{wd,l}; in main()
84 ASSERT_SAME_TYPE(year_month_weekday, decltype(year{2018}/Feb1stTues)); in main()
86 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb1stTues/year{2018})); in main()
101 year_month_weekday ymd1 = y/mwd; in main()
102 year_month_weekday ymd2 = mwd/y; in main()
117 ASSERT_SAME_TYPE(year_month_weekday, decltype(2018/Feb1stTues)); in main()
119 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb1stTues/2018)); in main()
134 year_month_weekday ymd1 = i/mwd; in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_weekday.pass.cpp45 using year_month_weekday = std::chrono::year_month_weekday; in main() typedef
59 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb2018/weekday_indexed{Tuesday, 2})); in main()
73 year_month_weekday ymd = year_month{y,m}/weekday_indexed{wd,l}; in main()
83 ASSERT_SAME_TYPE(year_month_weekday, decltype(year{2018}/Feb1stTues)); in main()
85 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb1stTues/year{2018})); in main()
100 year_month_weekday ymd1 = y/mwd; in main()
101 year_month_weekday ymd2 = mwd/y; in main()
116 ASSERT_SAME_TYPE(year_month_weekday, decltype(2018/Feb1stTues)); in main()
118 ASSERT_SAME_TYPE(year_month_weekday, decltype(Feb1stTues/2018)); in main()
133 year_month_weekday ymd1 = i/mwd; in main()
[all …]

12