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

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rGcf9831b843b4: [libcxx] [test] Add LIBCPP_ONLY() around another test for an implementation… (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89675/new/

https://reviews.llvm.org/D89675

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


Index: libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
===================================================================
--- libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
+++ libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp
@@ -33,7 +33,7 @@
   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());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89675.299157.patch
Type: text/x-patch
Size: 733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201019/e47e17bb/attachment.bin>


More information about the libcxx-commits mailing list