1 // { dg-additional-options "-std=c++14" } 2 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 // This ICEd for the PR. 13 14 task<int> bar()15bar () 16 { 17 co_return 0; 18 } 19 20 task<std::vector<int>> baz()21baz () 22 { 23 co_return std::vector<int>(); 24 } 25