libstdc++/71038 fix error checks in filesystem::copy_file
commite63988233b8534c0f912bf26be295f718b6e811c
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 May 2016 15:39:14 +0000 (10 15:39 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 May 2016 15:39:14 +0000 (10 15:39 +0000)
tree52d984eb545590c03be855afdd8a9ca3f070dbd6
parenta30ff73acd6a695272892e5adb690076bf65f938
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236084 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/copy_file.cc [new file with mode: 0644]