diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-10-25 13:42:53 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-10-25 13:42:53 +0100 |
commit | eeb517d3e7fd3717f4fa7cc8a1e6d4499013fee3 (patch) | |
tree | 9e06daf731c47d427c3aa8fd30441f6be11bd4a4 /gcc/fold-const.c | |
parent | 5de583cc1809a49a4b38950d2fc4633e31085a33 (diff) | |
download | gcc-eeb517d3e7fd3717f4fa7cc8a1e6d4499013fee3.zip gcc-eeb517d3e7fd3717f4fa7cc8a1e6d4499013fee3.tar.gz gcc-eeb517d3e7fd3717f4fa7cc8a1e6d4499013fee3.tar.bz2 |
Fix filesystem::path::lexically_normal algorithm
* src/filesystem/std-path.cc (path::lexically_normal): Add missing
step to algorithm, for removing dot-dot elements after root-directory.
* testsuite/27_io/filesystem/operations/canonical.cc: Use
compare_paths for more exhaustive checks.
* testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
* testsuite/27_io/filesystem/path/append/path.cc: Likewise.
* testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
* testsuite/27_io/filesystem/path/concat/strings.cc: Fix comment.
* testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
* testsuite/27_io/filesystem/path/decompose/root_directory.cc:
Likewise.
* testsuite/27_io/filesystem/path/generation/normal.cc: Use
compare_paths for more exhaustive checks. Add extra testcases.
* testsuite/27_io/filesystem/path/generation/proximate.cc: Use
compare_paths for more exhaustive checks.
* testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
* testsuite/27_io/filesystem/path/generic/generic_string.cc: Remove
unused header.
* testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: Fix
comment.
* testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: Use
compare_paths for more exhaustive checks.
* testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
Likewise.
* testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
Likewise.
* testsuite/util/testsuite_fs.h (compare_paths): Also compare native
strings.
From-SVN: r254075
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions