[llvm-branch-commits] [libcxx] 0601c8a - [libcxx] [test] Cover i386 & sparc64 in string.capacity test

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 2 21:34:30 PDT 2022


Author: Michał Górny
Date: 2022-08-02T21:28:57-07:00
New Revision: 0601c8a6d616176ce1ec1048d404d5c241b1b393

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

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

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

(cherry picked from commit 09cf95bd3ec24c77a854a0e0d9431a6d4ba460bc)

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 llvm-branch-commits mailing list