[libcxx-commits] [libcxx] 448eabd - [libcxx] [test] Fix max_size.pass.cpp for other Windows architectures

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 5 13:21:45 PDT 2022


Author: Martin Storsjö
Date: 2022-05-05T23:21:18+03:00
New Revision: 448eabd754852b6939ac5c54d8e71b6e3ff9b78a

URL: https://github.com/llvm/llvm-project/commit/448eabd754852b6939ac5c54d8e71b6e3ff9b78a
DIFF: https://github.com/llvm/llvm-project/commit/448eabd754852b6939ac5c54d8e71b6e3ff9b78a.diff

LOG: [libcxx] [test] Fix max_size.pass.cpp for other Windows architectures

All current Windows architectures (i386, x86_64, arm, arm64) get
the full_size() behaviour here. x86_64 (the only one tested in CI
currently) is handled by the first ifdef at the top, but handle
Windows in general on all other architectures later.

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

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 0468e785ec7a..bb9eddb59526 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
@@ -80,6 +80,8 @@ bool test() {
 #   endif
 # elif defined(__powerpc__) || defined(__powerpc64__)
   half_size();
+# elif defined(_WIN32)
+  full_size();
 # else
 #   error "Your target system seems to be unsupported."
 # endif


        


More information about the libcxx-commits mailing list