Home
last modified time | relevance | path

Searched refs:Ds (Results 1 – 25 of 62) sorted by relevance

123

/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/
Dplus_minus_equal.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<unsigned>(d1 += Ds{ 1}) != 2) return false; in testConstexpr()
28 if (static_cast<unsigned>(d1 += Ds{ 2}) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>(d1 += Ds{22}) != 26) return false; in testConstexpr()
30 if (static_cast<unsigned>(d1 -= Ds{ 1}) != 25) return false; in testConstexpr()
31 if (static_cast<unsigned>(d1 -= Ds{ 2}) != 23) return false; in testConstexpr()
32 if (static_cast<unsigned>(d1 -= Ds{22}) != 1) return false; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.members/
Dplus_minus_equal.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<unsigned>(d1 += Ds{ 1}) != 2) return false; in testConstexpr()
27 if (static_cast<unsigned>(d1 += Ds{ 2}) != 4) return false; in testConstexpr()
28 if (static_cast<unsigned>(d1 += Ds{22}) != 26) return false; in testConstexpr()
29 if (static_cast<unsigned>(d1 -= Ds{ 1}) != 25) return false; in testConstexpr()
30 if (static_cast<unsigned>(d1 -= Ds{ 2}) != 23) return false; in testConstexpr()
31 if (static_cast<unsigned>(d1 -= Ds{22}) != 1) return false; in testConstexpr()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_month.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
32 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
Dplus_minus_equal_year.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
29 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
32 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_year.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
27 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
29 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
Dplus_minus_equal_month.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
27 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_year.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
29 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
32 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
Dplus_minus_equal_month.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
32 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_year.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
27 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
29 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
Dplus_minus_equal_month.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
27 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_year.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
29 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
32 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
Dplus_minus_equal_month.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
32 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_year.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
27 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
29 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
Dplus_minus_equal_month.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
27 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dplus_minus_equal_month.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
32 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
Dplus_minus_equal_year.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
29 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
32 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dplus_minus_equal_year.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
27 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
29 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
Dplus_minus_equal_month.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
27 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dplus_minus_equal_year.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
27 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
29 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
Dplus_minus_equal_month.pass.cpp22 template <typename D, typename Ds>
26 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
27 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dplus_minus_equal_month.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; in testConstexpr()
28 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; in testConstexpr()
29 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; in testConstexpr()
30 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; in testConstexpr()
31 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; in testConstexpr()
32 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; in testConstexpr()
Dplus_minus_equal_year.pass.cpp23 template <typename D, typename Ds>
27 if (static_cast<int>((d1 += Ds{ 1}).year()) != 2) return false; in testConstexpr()
28 if (static_cast<int>((d1 += Ds{ 2}).year()) != 4) return false; in testConstexpr()
29 if (static_cast<int>((d1 += Ds{12}).year()) != 16) return false; in testConstexpr()
30 if (static_cast<int>((d1 -= Ds{ 1}).year()) != 15) return false; in testConstexpr()
31 if (static_cast<int>((d1 -= Ds{ 2}).year()) != 13) return false; in testConstexpr()
32 if (static_cast<int>((d1 -= Ds{12}).year()) != 1) return false; in testConstexpr()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/
Dminus.pass.cpp33 template <typename WD, typename Ds>
38 Ds offset{3}; in testConstexpr()
44 if (WD{0} - WD{1} != Ds{6}) return false; in testConstexpr()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/
Dminus.pass.cpp32 template <typename WD, typename Ds>
37 Ds offset{3}; in testConstexpr()
43 if (WD{0} - WD{1} != Ds{6}) return false; in testConstexpr()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.day/time.cal.day.nonmembers/
Dminus.pass.cpp27 template <typename D, typename Ds>
31 Ds offset{6}; in testConstexpr()

123