]> 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:04:13 +0000 (21:04 +0100)
commitd6384ad1a9ab7ea46990a7ed1299d5a2be4acece
treee2c6615fb5de5079ec5afdf94c01edbeb951e53e
parent61fe96d4853eb743eebbf98bff24f96fe007a6e1
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 stings 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.
libstdc++-v3/testsuite/27_io/filesystem/path/construct/95048.cc
libstdc++-v3/testsuite/experimental/filesystem/path/construct/95048.cc