Skip to content

Commit 032d66a

Browse files
committed
test: return bool from test()
1 parent 96c36b2 commit 032d66a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ TEST_CONSTEXPR_CXX26 void test_larger_sorts() {
134134
test_larger_sorts<N, N>();
135135
}
136136

137-
TEST_CONSTEXPR_CXX26 void test() {
137+
TEST_CONSTEXPR_CXX26 bool test() {
138138
// test null range
139139
int d = 0;
140140
std::stable_sort(&d, &d);
@@ -170,12 +170,14 @@ TEST_CONSTEXPR_CXX26 void test() {
170170
std::stable_sort(vec.begin(), vec.end());
171171
}
172172
#endif
173+
174+
return true;
173175
}
174176

175177
int main(int, char**) {
176178
test();
177179
#if TEST_STD_VER >= 26
178-
static_assert((test(), true));
180+
static_assert(test());
179181
#endif
180182
return 0;
181183
}

0 commit comments

Comments
 (0)