Skip to content

Commit

Permalink
Merge #474
Browse files Browse the repository at this point in the history
474: Add a const reference handling test for `start_detached` r=msimberg a=aurianer

Fixes partially #284.

Co-authored-by: Auriane R <aurianer@cscs.ch>
Co-authored-by: aurianer <aurianer@cscs.ch>
  • Loading branch information
bors[bot] and aurianer authored Oct 14, 2022
2 parents 05729e4 + e344f07 commit 5198ef6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/pika/execution/tests/unit/algorithm_start_detached.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ int main()
PIKA_TEST(!tag_invoke_overload_called);
}

{
int x = 42;
ex::start_detached(const_reference_sender<int>{x});
}

{
std::atomic<bool> start_called{false};
std::atomic<bool> connect_called{false};
Expand Down

0 comments on commit 5198ef6

Please sign in to comment.