[libcxx-commits] [PATCH] D157699: [libc++][test] Fix max_size test for Arm big endian

Michael Platings via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 11 08:25:24 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd13f1cb569ca: [libc++][test] Fix max_size test for Arm big endian (authored by michaelplatings).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157699

Files:
  libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp


Index: libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
===================================================================
--- libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
+++ libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
@@ -92,7 +92,15 @@
 
 #else
 
+# if defined(__arm__) || defined(__aarch64__)
+#   ifdef __BIG_ENDIAN__
+  full_size();
+#   else
   half_size();
+#   endif
+# else
+  half_size();
+# endif
 
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157699.549414.patch
Type: text/x-patch
Size: 506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230811/70367f57/attachment.bin>


More information about the libcxx-commits mailing list