| 61 | } |
| 62 | |
| 63 | int stackful_generator(experimental::context<generator<int>> c) |
| 64 | { |
| 65 | static_assert(experimental::detail::has_await_transform<decltype(c)::promise_type>); |
| 66 | BOOST_CHECK(c.await(this_coro::executor) == c.promise().get_executor()); |
| 67 | |
| 68 | c.yield(1); |
| 69 | c.yield(2); |
| 70 | c.yield(3); |
| 71 | c.yield(4); |
| 72 | |
| 73 | return 5; |
| 74 | } |
| 75 | |
| 76 | CO_TEST_CASE(generator_) |
| 77 | { |
nothing calls this directly
no test coverage detected