]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/experimental/filesystem/operations/last_write_time.cc
Handle negative times in filesystem::last_write_time
authorJonathan Wakely <jwakely@redhat.com>
Tue, 25 Oct 2016 15:32:52 +0000 (16:32 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 25 Oct 2016 15:32:52 +0000 (16:32 +0100)
commit7195dfe9b6be9dc479fbab9a0fc693ce786e7fef
treee20fea44c107df23239db86f2a8a4f203b078b96
parentec04aad76d5a4ac4759a78a04cbd950f4a1e9517
Handle negative times in filesystem::last_write_time

* src/filesystem/ops.cc
(last_write_time(const path&, file_time_type, error_code&)): Handle
negative times correctly.
* testsuite/experimental/filesystem/operations/last_write_time.cc:
Test writing file times.

From-SVN: r241522
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/last_write_time.cc