| 534 | } |
| 535 | |
| 536 | void concurrencpp::tests::test_task_call_operator_test_3() { |
| 537 | bool a = false, b = false, c = false; |
| 538 | int d = 1234567890, e = 0; |
| 539 | auto lambda = [](bool& _a, bool* _b, bool _c, int d, int& e) mutable { |
| 540 | _a = true; |
| 541 | *_b = true; |
| 542 | _c = true; |
| 543 | e = d; |
| 544 | }; |
| 545 | |
| 546 | task t(concurrencpp::details::bind(lambda, std::ref(a), &b, c, d, std::ref(e))); |
| 547 | t(); |
| 548 | |
| 549 | assert_true(a); |
| 550 | assert_true(b); |
| 551 | assert_false(c); |
| 552 | assert_equal(e, d); |
| 553 | } |
| 554 | |
| 555 | void concurrencpp::tests::test_task_call_operator_test_4() { |
| 556 | // empty task |
nothing calls this directly
no test coverage detected