PR libstdc++/83891 fix path::is_absolute() for non-POSIX targets
commit7330ffed52f1ec1d0a8571825daebe2ee1a58536
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 May 2018 13:50:49 +0000 (15 13:50 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 May 2018 13:50:49 +0000 (15 13:50 +0000)
tree064113a38ea4d5f02cc4158ded5fd248667a7056
parentfe18397563780ef5c090544ff3046b985721eb5e
PR libstdc++/83891 fix path::is_absolute() for non-POSIX targets

The correct definition seems to be has_root_directory() for all systems
we care about.

PR libstdc++/83891
* include/bits/fs_path.h (path::is_absolute()): Use same definition
for all operating systems.
* include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
* testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
* testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
* testsuite/experimental/filesystem/path/query/is_absolute.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260259 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/include/experimental/bits/fs_path.h
libstdc++-v3/testsuite/27_io/filesystem/path/query/is_absolute.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/filesystem/path/query/is_relative.cc
libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc [new file with mode: 0644]