diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-04-24 22:35:26 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-04-24 22:35:26 +0100 |
commit | f90b16c429fec60a1aaa10c6ef26a7a536b61e2a (patch) | |
tree | 5342a8d7159aa08ff7bd930aeaf6de872b652192 /libstdc++-v3/testsuite/27_io/filesystem/path | |
parent | 7f8aaa1ae95814217fa81692f08e01781fa5f747 (diff) |
Make filesystem::path comparison operators hidden friends (LWG 3065)
This change revealed two testsuite bugs where some string comparisons
only compiled by converting the strings to filesystem::path objects.
* include/bits/fs_path.h (operator<, operator<=, operator>)
(operator>=, operator==, operator!=): Make hidden friends, as per
LWG 3065.
* testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
string type in test.
* testsuite/27_io/filesystem/path/native/string.cc: Likewise.
From-SVN: r270558
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/filesystem/path')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/filesystem/path/native/string-char8_t.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/filesystem/path/native/string.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/native/string-char8_t.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/native/string-char8_t.cc index 4f187da7804..f5bb1afca5d 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/path/native/string-char8_t.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/path/native/string-char8_t.cc @@ -46,7 +46,7 @@ test02() path p(s); auto str = p.string<char>(); - VERIFY( str == u"abc" ); + VERIFY( str == "abc" ); VERIFY( str == p.string() ); auto strw = p.string<wchar_t>(); diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/native/string.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/native/string.cc index 5417ab4c011..4d45c7e15df 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/path/native/string.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/path/native/string.cc @@ -46,7 +46,7 @@ test02() path p(s); auto str = p.string<char>(); - VERIFY( str == u"abc" ); + VERIFY( str == "abc" ); VERIFY( str == p.string() ); auto strw = p.string<wchar_t>(); |