/external/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 25 using month = std::chrono::month; 28 ASSERT_NOEXCEPT( std::declval<const month_day_last>().month()); 29 ASSERT_SAME_TYPE(month, decltype(std::declval<const month_day_last>().month())); 31 static_assert( month_day_last{month{}}.month() == month{}, ""); [all...] |
comparisons.pass.cpp | 15 // Returns: x.month() == y.month() 18 // Returns: x.month() < y.month() 30 using month = std::chrono::month; 36 static_assert( testComparisons6Values<month_day_last>(month{1}, month{1}), ""); 37 static_assert( testComparisons6Values<month_day_last>(month{1}, month{2}), "") [all...] |
ctor.pass.cpp | 14 // constexpr month_day_last(const chrono::month& m) noexcept; 18 // constexpr chrono::month month() const noexcept; 29 using month = std::chrono::month; 32 ASSERT_NOEXCEPT(month_day_last{month{1}}); 34 constexpr month_day_last md0{month{}}; 35 static_assert( md0.month() == month{}, ""); 39 static_assert( md1.month() == std::chrono::January, "") [all...] |
streaming.pass.cpp | 19 // Returns: os << mdl.month() << "/last". 32 using month = std::chrono::month; 33 std::cout << month_day_last{month{1}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/ |
streaming.pass.cpp | 13 // class month; 17 // operator<<(basic_ostream<charT, traits>& os, const month& m); 20 // Otherwise inserts int{m} << " is not a valid month". 24 // to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month& m); 32 // month& m, basic_string<charT, traits, Alloc>* abbrev = nullptr, 35 // Effects: Attempts to parse the input stream is into the month m using the format flags 36 // given in the NTCTS fmt as specified in 25.12. If the parse fails to decode a valid month, 51 using month = std::chrono::month; 52 std::cout << month{1} [all...] |
comparisons.pass.cpp | 12 // class month; 14 // constexpr bool operator==(const month& x, const month& y) noexcept; 15 // constexpr bool operator!=(const month& x, const month& y) noexcept; 16 // constexpr bool operator< (const month& x, const month& y) noexcept; 17 // constexpr bool operator> (const month& x, const month& y) noexcept; 18 // constexpr bool operator<=(const month& x, const month& y) noexcept [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/ |
types.pass.cpp | 12 // class month; 22 using month = std::chrono::month; 24 static_assert(std::is_trivially_copyable_v<month>, ""); 25 static_assert(std::is_standard_layout_v<month>, "");
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.members/ |
ctor.pass.cpp | 12 // class month; 14 // month() = default; 15 // explicit constexpr month(int m) noexcept; 18 // Effects: Constructs an object of type month by initializing m_ with m. 29 using month = std::chrono::month; 31 ASSERT_NOEXCEPT(month{}); 32 ASSERT_NOEXCEPT(month(1)); 33 ASSERT_NOEXCEPT(static_cast<unsigned>(month(1))); 35 constexpr month m0{} [all...] |
decrement.pass.cpp | 12 // class month; 14 // constexpr month& operator--() noexcept; 15 // constexpr month operator--(int) noexcept; 36 using month = std::chrono::month; 38 ASSERT_NOEXCEPT(--(std::declval<month&>()) ); 39 ASSERT_NOEXCEPT( (std::declval<month&>())--); 41 ASSERT_SAME_TYPE(month , decltype( std::declval<month&>()--)); 42 ASSERT_SAME_TYPE(month&, decltype(--std::declval<month&>() )) [all...] |
increment.pass.cpp | 12 // class month; 14 // constexpr month& operator++() noexcept; 15 // constexpr month operator++(int) noexcept; 36 using month = std::chrono::month; 37 ASSERT_NOEXCEPT(++(std::declval<month&>()) ); 38 ASSERT_NOEXCEPT( (std::declval<month&>())++); 40 ASSERT_SAME_TYPE(month , decltype( std::declval<month&>()++)); 41 ASSERT_SAME_TYPE(month&, decltype(++std::declval<month&>() )) [all...] |
ok.pass.cpp | 12 // class month; 25 using month = std::chrono::month; 27 ASSERT_NOEXCEPT( std::declval<const month>().ok()); 28 ASSERT_SAME_TYPE(bool, decltype(std::declval<const month>().ok())); 30 static_assert(!month{0}.ok(), ""); 31 static_assert( month{1}.ok(), ""); 33 assert(!month{0}.ok()); 35 assert(month{i}.ok()); 37 assert(!month{i}.ok()) [all...] |
plus_minus_equal.pass.cpp | 12 // class month; 14 // constexpr month& operator+=(const month& d) noexcept; 15 // constexpr month& operator-=(const month& d) noexcept; 38 using month = std::chrono::month; 41 ASSERT_NOEXCEPT(std::declval<month&>() += std::declval<months&>()); 42 ASSERT_NOEXCEPT(std::declval<month&>() -= std::declval<months&>()); 43 ASSERT_SAME_TYPE(month&, decltype(std::declval<month&>() += std::declval<months&>())) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 26 using month = std::chrono::month; 29 ASSERT_NOEXCEPT( std::declval<const month_day>().month()); 30 ASSERT_SAME_TYPE(month, decltype(std::declval<const month_day>().month())); 32 static_assert( month_day{}.month() == month{}, ""); 36 month_day md(month{i}, day{1}) [all...] |
ctor.pass.cpp | 15 // constexpr month_day(const chrono::month& m, const chrono::day& d) noexcept; 19 // constexpr chrono::month month() const noexcept; 32 using month = std::chrono::month; 36 ASSERT_NOEXCEPT(month_day{month{1}, day{1}}); 39 static_assert( md0.month() == month{}, ""); 44 static_assert( md1.month() == std::chrono::January, "");
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 26 using month = std::chrono::month; 32 ASSERT_NOEXCEPT( std::declval<const month_weekday>().month()); 33 ASSERT_SAME_TYPE(month, decltype(std::declval<const month_weekday>().month())); 35 static_assert( month_weekday{}.month() == month{}, ""); 39 month_weekday md(month{i}, weekday_indexed{Sunday, 1}) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 26 using month = std::chrono::month; 29 ASSERT_NOEXCEPT( std::declval<const year_month>().month()); 30 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month>().month())); 32 static_assert( year_month{}.month() == month{}, ""); 36 year_month ym(year{1234}, month{i}) [all...] |
ctor.pass.cpp | 15 // constexpr year_month(const chrono::year& y, const chrono::month& m) noexcept; 20 // constexpr chrono::month month() const noexcept; 32 using month = std::chrono::month; 36 ASSERT_NOEXCEPT(year_month{year{1}, month{1}}); 40 static_assert( ym0.month() == month{}, ""); 45 static_assert( ym1.month() == std::chrono::January, ""); 48 constexpr year_month ym2{year{2018}, month{}}; [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 26 using month = std::chrono::month; 30 ASSERT_NOEXCEPT( std::declval<const year_month_day>().month()); 31 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_day>().month())); 33 static_assert( year_month_day{}.month() == month{}, ""); 37 year_month_day ymd(year{1234}, month{i}, day{12}) [all...] |
ok.pass.cpp | 26 using month = std::chrono::month; 30 constexpr month January = std::chrono::January; 35 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad 38 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month 41 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month 42 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & da [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 26 using month = std::chrono::month; 30 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().month()); 31 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_weekday>().month())); 33 static_assert( year_month_weekday{}.month() == month{}, ""); 37 year_month_weekday ymd(year{1234}, month{i}, weekday_indexed{}) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 26 using month = std::chrono::month; 30 ASSERT_NOEXCEPT( std::declval<const year_month_day_last>().month()); 31 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_day_last>().month())); 35 year_month_day_last ymd(year{1234}, month_day_last{month{i}}); 36 assert( static_cast<unsigned>(ymd.month()) == i);
|
ctor.pass.cpp | 21 // constexpr chrono::month month() const noexcept; 34 using month = std::chrono::month; 38 ASSERT_NOEXCEPT(year_month_day_last{year{1}, month_day_last{month{1}}}); 40 constexpr month January = std::chrono::January; 42 constexpr year_month_day_last ymdl0{year{}, month_day_last{month{}}}; 44 static_assert( ymdl0.month() == month{}, ""); 45 static_assert( ymdl0.month_day_last() == month_day_last{month{}}, ""); [all...] |
day.pass.cpp | 26 using month = std::chrono::month; 35 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 1}}}.day() == day{31}, ""); 36 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 2}}}.day() == day{29}, ""); 37 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 3}}}.day() == day{31}, ""); 38 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 4}}}.day() == day{30}, ""); 39 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 5}}}.day() == day{31}, ""); 40 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 6}}}.day() == day{30}, ""); 41 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 7}}}.day() == day{31}, ""); 42 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 8}}}.day() == day{31}, "") [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 25 using month = std::chrono::month; 32 ASSERT_NOEXCEPT( std::declval<const month_weekday_last>().month()); 33 ASSERT_SAME_TYPE(month, decltype(std::declval<const month_weekday_last>().month())); 35 static_assert( month_weekday_last{month{}, weekday_last{Tuesday}}.month() == month{}, ""); [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
month.pass.cpp | 14 // constexpr chrono::month month() const noexcept; 26 using month = std::chrono::month; 31 ASSERT_NOEXCEPT( std::declval<const year_month_weekday_last>().month()); 32 ASSERT_SAME_TYPE(month, decltype(std::declval<const year_month_weekday_last>().month())); 34 static_assert( year_month_weekday_last{year{}, month{}, weekday_last{weekday{}}}.month() == month{}, ""); [all...] |