[libcxx] [test] Fix max_size.pass.cpp for other Windows architectures
authorMartin Storsjö <martin@martin.st>
Wed, 4 May 2022 11:39:21 +0000 (14:39 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 5 May 2022 20:21:18 +0000 (23:21 +0300)
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

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

index 0468e78..bb9eddb 100644 (file)
@@ -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