[libcxx-commits] [libcxx] 41c5070 - [libcxx] [test] Don't require fs::path::operator(string_type&&) to be noexcept

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 19 14:07:29 PDT 2020


Author: Martin Storsjö
Date: 2020-10-20T00:07:01+03:00
New Revision: 41c5070888947aeebd90db484d4c6a7b34889a13

URL: https://github.com/llvm/llvm-project/commit/41c5070888947aeebd90db484d4c6a7b34889a13
DIFF: https://github.com/llvm/llvm-project/commit/41c5070888947aeebd90db484d4c6a7b34889a13.diff

LOG: [libcxx] [test] Don't require fs::path::operator(string_type&&) to be noexcept

Mark this as a libcpp specific test; the standard doesn't say that
this method should be noexcept.

Differential Revision: https://reviews.llvm.org/D89677

Added: 
    

Modified: 
    libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp
index e02049821c11..2ada91354b51 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp
@@ -223,7 +223,7 @@ void RunStringMoveTest(const char* Expect) {
   assert(p == Expect);
   {
     // Signature test
-    ASSERT_NOEXCEPT(p = std::move(ss));
+    LIBCPP_ONLY(ASSERT_NOEXCEPT(p = std::move(ss)));
   }
 }
 


        


More information about the libcxx-commits mailing list