@@ -388,13 +388,17 @@ void test() {
388388 // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
389389 std::ranges::fold_left (iter, iter, 0 , std::plus ());
390390 // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
391- std::ranges::fold_left_with_iter (range, 0 , std::plus ());
391+ std::ranges::fold_left_first (range, std::plus ());
392392 // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
393- std::ranges::fold_left_with_iter (iter, iter, 0 , std::plus ());
393+ std::ranges::fold_left_first (iter, iter, std::plus ());
394394 // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
395395 std::ranges::fold_left_first_with_iter (range, std::plus ());
396396 // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
397397 std::ranges::fold_left_first_with_iter (iter, iter, std::plus ());
398398 // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
399+ std::ranges::fold_left_with_iter (range, 0 , std::plus ());
400+ // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
401+ std::ranges::fold_left_with_iter (iter, iter, 0 , std::plus ());
402+ // expected-warning@-1{{ignoring return value of function declared with 'nodiscard' attribute}}
399403#endif
400404}
0 commit comments