libstdc++/71038 fix error checks in filesystem::copy_file
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 May 2016 15:39:14 +0000 (16:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 May 2016 15:39:14 +0000 (16:39 +0100)
commit6fe673ad0f0fb412f09ddd219eee1b868cfa19d3
tree52d984eb545590c03be855afdd8a9ca3f070dbd6
parent4b59d19ffdb4857e14328d8d783176b97ccde23e
libstdc++/71038 fix error checks in filesystem::copy_file

PR libstdc++/71038
* src/filesystem/ops.cc (do_copy_file): Fix backwards conditions.
* testsuite/experimental/filesystem/operations/copy_file.cc: New test.

From-SVN: r236084
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/copy_file.cc [new file with mode: 0644]