We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c36b2 commit 032d66aCopy full SHA for 032d66a
libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort.pass.cpp
@@ -134,7 +134,7 @@ TEST_CONSTEXPR_CXX26 void test_larger_sorts() {
134
test_larger_sorts<N, N>();
135
}
136
137
-TEST_CONSTEXPR_CXX26 void test() {
+TEST_CONSTEXPR_CXX26 bool test() {
138
// test null range
139
int d = 0;
140
std::stable_sort(&d, &d);
@@ -170,12 +170,14 @@ TEST_CONSTEXPR_CXX26 void test() {
170
std::stable_sort(vec.begin(), vec.end());
171
172
#endif
173
+
174
+ return true;
175
176
177
int main(int, char**) {
178
test();
179
#if TEST_STD_VER >= 26
- static_assert((test(), true));
180
+ static_assert(test());
181
182
return 0;
183
0 commit comments