diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-10-16 17:27:54 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-10-16 17:27:54 +0000 |
commit | 5b08c1742a536f54bd5e270b00ff851cbc7314ef (patch) | |
tree | da57701de3aa2db5ba2d71952f0f1039ce58b195 /libcxx/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp | |
parent | 4503c514d96d1810b826760a620e0969caadc82d (diff) | |
download | bcm5719-llvm-5b08c1742a536f54bd5e270b00ff851cbc7314ef.tar.gz bcm5719-llvm-5b08c1742a536f54bd5e270b00ff851cbc7314ef.zip |
Recommit <chrono> changes with a couple xtra tests marked to fail on apple's clang. Reviewed as D51762
llvm-svn: 344627
Diffstat (limited to 'libcxx/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp b/libcxx/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp index 5e59e115378..6e43e3a9a2f 100644 --- a/libcxx/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp +++ b/libcxx/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp @@ -7,8 +7,8 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// - // UNSUPPORTED: c++98, c++03, c++11 + #include <chrono> #include <cassert> @@ -45,4 +45,27 @@ int main() assert ( ns == nanoseconds(645)); auto ns2 = 645.ns; assert ( ns == ns2 ); + +#if TEST_STD_VER > 17 + assert(Sunday == weekday(0)); + assert(Monday == weekday(1)); + assert(Tuesday == weekday(2)); + assert(Wednesday == weekday(3)); + assert(Thursday == weekday(4)); + assert(Friday == weekday(5)); + assert(Saturday == weekday(6)); + + assert(January == month(1)); + assert(February == month(2)); + assert(March == month(3)); + assert(April == month(4)); + assert(May == month(5)); + assert(June == month(6)); + assert(July == month(7)); + assert(August == month(8)); + assert(September == month(9)); + assert(October == month(10)); + assert(November == month(11)); + assert(December == month(12)); +#endif } |