Skip to content

Commit 53bb617

Browse files
committed
test: regenerate results after "do not move single named return"
1 parent c4e06b1 commit 53bb617

4 files changed

+5
-5
lines changed

regression-tests/test-results/mixed-postexpression-with-capture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ auto insert_at(cpp2::in<int> where, cpp2::in<int> val) -> void
7272
cpp2_finally_presuccess.add([&, _1 = CPP2_UFCS(length)(ret)]{cpp2::Default.expects(CPP2_UFCS(length)(ret) == _1 + 5, "");} );
7373
#line 26 "mixed-postexpression-with-capture.cpp2"
7474
ret += " and ";
75-
cpp2_finally_presuccess.run(); return std::move(ret); }
75+
cpp2_finally_presuccess.run(); return ret; }
7676

7777
[[nodiscard]] auto make_strings() -> make_strings_ret
7878

regression-tests/test-results/pure2-bugfix-for-name-lookup-and-value-decoration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using vals_ret = int;
2626
cpp2::deferred_init<int> i;
2727
#line 2 "pure2-bugfix-for-name-lookup-and-value-decoration.cpp2"
2828
i.construct(42);
29-
return std::move(i.value());
29+
return i.value();
3030
}
3131

3232
[[nodiscard]] auto main() -> int{

regression-tests/test-results/pure2-look-up-parameter-across-unnamed-function.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using g_ret = int;
3636
auto pred {[](auto const& e) mutable -> auto { return e == 1; }};
3737
ri = 42;
3838
std::move(pred)(ri);
39-
return std::move(ri); // "return;" is implicit"
39+
return ri; // "return;" is implicit"
4040
}
4141

4242
[[nodiscard]] auto g() -> g_ret{
@@ -46,7 +46,7 @@ using g_ret = int;
4646
auto pred {[](auto const& e) mutable -> auto { return e == 1; }};
4747
ri.value() = 42;
4848
std::move(pred)(ri.value());
49-
return std::move(ri.value());
49+
return ri.value();
5050
}
5151

5252
[[nodiscard]] auto main() -> int{

regression-tests/test-results/pure2-ufcs-member-access-and-chaining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ auto no_return([[maybe_unused]] auto const& unnamed_param_1) -> void{}
7171
cpp2::deferred_init<int> i;
7272
#line 33 "pure2-ufcs-member-access-and-chaining.cpp2"
7373
i.construct(42);
74-
return std::move(i.value());
74+
return i.value();
7575
}
7676

7777
[[nodiscard]] auto get_i(auto const& r) -> int{

0 commit comments

Comments
 (0)