Skip to content

Commit 2f90ac3

Browse files
committed
test: use TEST_STD_VER
1 parent 8f16d4f commit 2f90ac3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort.pass.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ std::array<int, N> sort_reversely_swapped_sorted_ranges() {
127127
return array;
128128
}
129129

130-
#if _LIBCPP_STD_VER >= 26
130+
#if TEST_STD_VER >= 26
131131
# define COMPILE_OR_RUNTIME_ASSERT(func) \
132132
if consteval { \
133133
static_assert(func); \
@@ -148,7 +148,7 @@ TEST_CONSTEXPR_CXX26 void test_larger_sorts() {
148148
COMPILE_OR_RUNTIME_ASSERT(std::is_sorted(array.begin(), array.end()))
149149
}
150150

151-
#if _LIBCPP_STD_VER >= 26
151+
#if TEST_STD_VER >= 26
152152
if !consteval
153153
#endif
154154
{ // test random pattern
@@ -165,7 +165,7 @@ TEST_CONSTEXPR_CXX26 void test_larger_sorts() {
165165
COMPILE_OR_RUNTIME_ASSERT(std::is_sorted(array.begin(), array.end()))
166166
}
167167

168-
#if _LIBCPP_STD_VER >= 26
168+
#if TEST_STD_VER >= 26
169169
if !consteval
170170
#endif
171171
{ // test reverse sorted pattern
@@ -179,7 +179,7 @@ TEST_CONSTEXPR_CXX26 void test_larger_sorts() {
179179
COMPILE_OR_RUNTIME_ASSERT(std::is_sorted(array.begin(), array.end()))
180180
}
181181

182-
#if _LIBCPP_STD_VER >= 26
182+
#if TEST_STD_VER >= 26
183183
if !consteval
184184
#endif
185185
{ // test reverse swap ranges 2 pattern
@@ -202,7 +202,7 @@ TEST_CONSTEXPR_CXX26 void test_larger_sorts() {
202202
test_larger_sorts<N, N>();
203203
}
204204

205-
#if _LIBCPP_STD_VER >= 26
205+
#if TEST_STD_VER >= 26
206206
# define COMPILE_AND_RUNTIME_CALL(func) \
207207
func; \
208208
static_assert((func, true));
@@ -214,7 +214,7 @@ int main(int, char**) {
214214
{ // test null range
215215
int d = 0;
216216
std::stable_sort(&d, &d);
217-
#if _LIBCPP_STD_VER >= 26
217+
#if TEST_STD_VER >= 26
218218
static_assert((std::stable_sort(&d, &d), true));
219219
#endif
220220
}
@@ -234,7 +234,7 @@ int main(int, char**) {
234234
// run- and conditionally compile-time tests
235235
test_larger_sorts<256>();
236236
test_larger_sorts<257>();
237-
#if _LIBCPP_STD_VER >= 26
237+
#if TEST_STD_VER >= 26
238238
static_assert((test_larger_sorts<256>(), true));
239239
static_assert((test_larger_sorts<257>(), true));
240240
#endif

0 commit comments

Comments
 (0)