| 647 | "[asioexec][completion_token]") |
| 648 | { |
| 649 | class obj |
| 650 | { |
| 651 | bool throw_; |
| 652 | public: |
| 653 | explicit obj(bool t = false) noexcept |
| 654 | : throw_(t) |
| 655 | {} |
| 656 | |
| 657 | obj(obj&&) = default; |
| 658 | |
| 659 | obj(obj const & other) |
| 660 | : throw_(other.throw_) |
| 661 | { |
| 662 | if (throw_) |
| 663 | { |
| 664 | throw std::logic_error("Test"); |
| 665 | } |
| 666 | } |
| 667 | |
| 668 | obj& operator=(obj const &) = delete; |
| 669 | |
| 670 | bool operator==(obj const & rhs) const noexcept |
| 671 | { |
| 672 | return throw_ == rhs.throw_; |
| 673 | } |
| 674 | }; |
| 675 | |
| 676 | obj const expected; |
| 677 | std::exception_ptr ex; |
no outgoing calls
no test coverage detected