[libcxx-commits] [libcxx] 09cf95b - [libcxx] [test] Cover i386 & sparc64 in string.capacity test

Michał Górny via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jul 31 06:54:24 PDT 2022


Author: Michał Górny
Date: 2022-07-31T15:53:56+02:00
New Revision: 09cf95bd3ec24c77a854a0e0d9431a6d4ba460bc

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

LOG: [libcxx] [test] Cover i386 & sparc64 in string.capacity test

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp b/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
index 4d6248b9af1d1..0f7e17cb4ab7f 100644
--- a/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
+++ b/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
@@ -64,7 +64,7 @@ bool test() {
 
 #if _LIBCPP_ABI_VERSION == 1
 
-# if defined(__x86_64__)
+# if defined(__x86_64__) || defined(__i386__)
   full_size();
 # elif defined(__APPLE__) && defined(__aarch64__)
   half_size();
@@ -74,7 +74,7 @@ bool test() {
 #   else
   full_size();
 #   endif
-# elif defined(__powerpc__) || defined(__powerpc64__)
+# elif defined(__powerpc__) || defined(__powerpc64__) || defined(__sparc64__)
   half_size();
 # elif defined(_WIN32)
   full_size();


        


More information about the libcxx-commits mailing list