File tree Expand file tree Collapse file tree 4 files changed +28
-9
lines changed
test/std/strings/basic.string/string.capacity Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Original file line number Diff line number Diff line change 118118# define _LIBCPP_INTRODUCED_IN_LLVM_21_ATTRIBUTE __attribute__ ((unavailable))
119119
120120// LLVM 20
121- // TODO: Fill this in
122- # define _LIBCPP_INTRODUCED_IN_LLVM_20 0
123- # define _LIBCPP_INTRODUCED_IN_LLVM_20_ATTRIBUTE __attribute__ ((unavailable))
121+ //
122+ // Note that versions for most Apple OSes were bumped forward and aligned in that release.
123+ # if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 260000) || \
124+ (defined (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 260000 ) || \
125+ (defined (__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ < 260000 ) || \
126+ (defined (__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 260000 ) || \
127+ (defined (__ENVIRONMENT_BRIDGE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_BRIDGE_OS_VERSION_MIN_REQUIRED__ < 100000 )
128+ # define _LIBCPP_INTRODUCED_IN_LLVM_20 0
129+ # else
130+ # define _LIBCPP_INTRODUCED_IN_LLVM_20 1
131+ # endif
132+ # define _LIBCPP_INTRODUCED_IN_LLVM_20_ATTRIBUTE \
133+ __attribute__ ((availability(macos, strict, introduced = 26.0 ))) \
134+ __attribute__((availability(ios, strict, introduced = 26.0 ))) \
135+ __attribute__((availability(tvos, strict, introduced = 26.0 ))) \
136+ __attribute__((availability(watchos, strict, introduced = 26.0 ))) \
137+ __attribute__((availability(bridgeos, strict, introduced = 10.0 )))
124138
125139// LLVM 19
126140# if (defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 150400) || \
Original file line number Diff line number Diff line change 88
99// UNSUPPORTED: no-exceptions
1010
11- // After changing the alignment of the allocated pointer from 16 to 8, the exception
12- // thrown is no longer `bad_alloc` but instead length_error on systems using new
13- // headers but a dylib that doesn't contain 04ce0ba.
14- //
15- // XFAIL: using-built-library-before-llvm-19
16-
1711// <string>
1812
1913// size_type max_size() const; // constexpr since C++20
Original file line number Diff line number Diff line change @@ -733,6 +733,13 @@ def check_gdb(cfg):
733733# Helpers to define correspondances between LLVM versions and vendor system versions.
734734# Those are used for backdeployment features below, do not use directly in tests.
735735DEFAULT_FEATURES += [
736+ Feature (
737+ name = "_target-has-llvm-20" ,
738+ when = lambda cfg : BooleanExpression .evaluate (
739+ "_target-has-llvm-21 || target={{.+}}-apple-macosx26.{{\d+(.\d+)?}}" ,
740+ cfg .available_features ,
741+ ),
742+ ),
736743 Feature (
737744 name = "_target-has-llvm-19" ,
738745 when = lambda cfg : BooleanExpression .evaluate (
Original file line number Diff line number Diff line change 1313// dd8b266ef.
1414// UNSUPPORTED: using-built-library-before-llvm-20
1515
16+ // This test exercises support for BitInt demangling introduced in
17+ // 20f56d140909a01c74e9981835373eaab6021af9.
18+ // UNSUPPORTED: using-built-library-before-llvm-21
19+
1620// XFAIL: win32-broken-printf-a-precision
1721
1822#include " support/timer.h"
You can’t perform that action at this time.
0 commit comments