[libcxx] [test] Cover i386 & sparc64 in string.capacity test
authorMichał Górny <mgorny@moritz.systems>
Sun, 31 Jul 2022 11:02:57 +0000 (13:02 +0200)
committerMichał Górny <mgorny@moritz.systems>
Sun, 31 Jul 2022 13:53:56 +0000 (15:53 +0200)
Differential Revision: https://reviews.llvm.org/D130837

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

index 4d6248b..0f7e17c 100644 (file)
@@ -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();