Skip to content

Commit 2f00429

Browse files
committed
fix copy ci
1 parent 962695a commit 2f00429

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/test/libcxx/algorithms/robust_against_copying_comparators.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ TEST_CONSTEXPR_CXX20 bool all_the_algorithms() {
149149
assert(copies == 0);
150150
#endif
151151
(void)std::generate(first, last, NullaryValue<T>(&copies));
152-
assert(copies == 0);
152+
assert(copies == 1);
153+
copies = 0;
153154
(void)std::generate_n(first, count, NullaryValue<T>(&copies));
154155
assert(copies == 0);
155156
(void)std::includes(first, last, first2, last2, Less<T>(&copies));

0 commit comments

Comments
 (0)