diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-11-16 05:48:32 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-11-16 05:48:32 +0000 |
commit | 2f13e790839f1b3f975a254ffd4c29a171ab9204 (patch) | |
tree | 78953fd00474979bf2a336f391f71ec604819080 /libcxx/test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp | |
parent | 87f4a3de456427b22ab7dd8fcb0c2db58ef57c37 (diff) | |
download | bcm5719-llvm-2f13e790839f1b3f975a254ffd4c29a171ab9204.tar.gz bcm5719-llvm-2f13e790839f1b3f975a254ffd4c29a171ab9204.zip |
More of P0600 - '[[nodiscard]] in the Library' mark empty() as nodiscard in filesystem::path
llvm-svn: 318378
Diffstat (limited to 'libcxx/test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp')
-rw-r--r-- | libcxx/test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp index 078e006663e..823865ba76f 100644 --- a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp +++ b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.decompose/path.decompose.pass.cpp @@ -177,7 +177,8 @@ void decompFilenameTest() for (auto const & TC : FilenameTestCases) { path p(TC.raw); assert(p == TC.raw); - + ASSERT_NOEXCEPT(p.empty()); + assert(p.filename() == TC.filename); assert(p.has_filename() != TC.filename.empty()); |