From 0fdab5eb69ca4b2e9048526b33948af72976c7bc Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 23 Jul 2016 03:10:56 +0000 Subject: Implement P0392r0. Integrate filesystem::path and string_view. llvm-svn: 276511 --- .../class.path/path.member/path.construct/source.pass.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcxx/test/std/experimental/filesystem/class.path/path.member/path.construct/source.pass.cpp') diff --git a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.construct/source.pass.cpp b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.construct/source.pass.cpp index d89e7c815ef..402225de11b 100644 --- a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.construct/source.pass.cpp +++ b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.construct/source.pass.cpp @@ -47,6 +47,13 @@ void RunTestCase(MultiStringType const& MS) { assert(p.string() == TestPath); assert(p.string() == S); } + { + const std::basic_string_view S(TestPath); + path p(S); + assert(p.native() == Expect); + assert(p.string() == TestPath); + assert(p.string() == S); + } // Char* pointers { path p(TestPath); -- cgit v1.2.3