[libcxx-commits] [libcxx] cf9831b - [libcxx] [test] Add LIBCPP_ONLY() around another test for an implementation detail

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


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

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

LOG: [libcxx] [test] Add LIBCPP_ONLY() around another test for an implementation detail

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

Added: 
    

Modified: 
    libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
index a2882f396746..99d695040bda 100644
--- a/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
@@ -33,7 +33,7 @@ int main(int, char**) {
   typedef std::underlying_type<E>::type UT;
   static_assert(!std::is_convertible<E, UT>::value, "");
 
-  static_assert(std::is_same<UT, unsigned char >::value, ""); // Implementation detail
+  LIBCPP_ONLY(static_assert(std::is_same<UT, unsigned char >::value, "")); // Implementation detail
 
   typedef check_bitmask_type<E, E::replace, E::nofollow> BitmaskTester;
   assert(BitmaskTester::check());


        


More information about the libcxx-commits mailing list