diff --git a/test/test_coroutine.cpp b/test/test_coroutine.cpp index e6e2aa1..0550dea 100644 --- a/test/test_coroutine.cpp +++ b/test/test_coroutine.cpp @@ -530,6 +530,12 @@ void test_invalid_result() BOOST_CHECK( catched); } +void test_no_call() +{ + coro::coroutine::push_type coro([](coro::coroutine::pull_type& c) + { if(c) c.get(); }); +} + boost::unit_test::test_suite * init_unit_test_suite( int, char* []) { boost::unit_test::test_suite * test = @@ -554,6 +560,7 @@ boost::unit_test::test_suite * init_unit_test_suite( int, char* []) test->add( BOOST_TEST_CASE( & test_exceptions) ); test->add( BOOST_TEST_CASE( & test_output_iterator) ); test->add( BOOST_TEST_CASE( & test_input_iterator) ); + test->add( BOOST_TEST_CASE( & test_no_call) ); return test; }