1 // { dg-additional-options "-std=c++17" } 2 #define DELETE_COPY_CTOR 1 3 #include "ramp-return.h" 4 5 task<int> foo()6foo () 7 { 8 std::coroutine_handle<promise<int>> _handle; 9 return task<int> (_handle); 10 } 11 12 task<int> bar()13bar () 14 { 15 co_return 0; 16 } 17 18 task<std::vector<int>> baz()19baz () 20 { 21 co_return std::vector<int>(); 22 } 23