]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Check conversion from filesystem::path to wide strings [PR95048]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Jul 2023 13:40:19 +0000 (14:40 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 12 Jul 2023 20:23:04 +0000 (21:23 +0100)
commit470f32f964574febf484edaf9e580067ac97f3b6
treedc2f4440b7d7e75fc98470f906b10a91856bea14
parent13cfe6b2969de2981e8de60585ba204fbf9ce459
libstdc++: Check conversion from filesystem::path to wide strings [PR95048]

The testcase added for this bug only checks conversion from wide strings
on construction, but the fix also covered conversion to wide strings via
path::wstring(). Add checks for that, and u16string() and u32string().

libstdc++-v3/ChangeLog:

PR libstdc++/95048
* testsuite/27_io/filesystem/path/construct/95048.cc: Check
conversions to wide strings.
* testsuite/experimental/filesystem/path/construct/95048.cc:
Likewise.

(cherry picked from commit d6384ad1a9ab7ea46990a7ed1299d5a2be4acece)
libstdc++-v3/testsuite/27_io/filesystem/path/construct/95048.cc
libstdc++-v3/testsuite/experimental/filesystem/path/construct/95048.cc