diff --git a/libcxx/include/filesystem b/libcxx/include/filesystem index 2da24d485021fe..58a1ef239b21cf 100644 --- a/libcxx/include/filesystem +++ b/libcxx/include/filesystem @@ -921,7 +921,7 @@ public: typedef basic_string string_type; typedef basic_string_view __string_view; - enum class _LIBCPP_ENUM_VIS format : unsigned char { + enum _LIBCPP_ENUM_VIS format : unsigned char { auto_format, native_format, generic_format diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp index 83ce692e728008..d0ebf5a1cab4ea 100644 --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp @@ -87,6 +87,9 @@ void RunTestCase(MultiStringType const& MS) { RunTestCaseImpl(MS, fs::path::format::auto_format); RunTestCaseImpl(MS, fs::path::format::native_format); RunTestCaseImpl(MS, fs::path::format::generic_format); + RunTestCaseImpl(MS, fs::path::auto_format); + RunTestCaseImpl(MS, fs::path::native_format); + RunTestCaseImpl(MS, fs::path::generic_format); } void test_sfinae() { diff --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp index f328167833371b..210d28af7bd485 100644 --- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp @@ -23,9 +23,7 @@ int main(int, char**) { typedef fs::path::format E; static_assert(std::is_enum::value, ""); - // Check that E is a scoped enum by checking for conversions. typedef std::underlying_type::type UT; - LIBCPP_STATIC_ASSERT(!std::is_convertible::value, ""); LIBCPP_ONLY(static_assert(std::is_same::value, "")); // Implementation detail