blob: e030ca1b7aeba3531217d19cd6ccb07543acaad7 [file] [log] [blame]
// { dg-additional-options "-std=c++17" }
#define DELETE_COPY_CTOR 1
#include "ramp-return.h"
task<int>
foo ()
{
std::coroutine_handle<promise<int>> _handle;
return task<int> (_handle);
}
task<int>
bar ()
{
co_return 0;
}
task<std::vector<int>>
baz ()
{
co_return std::vector<int>();
}