Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/coroutines/ramp-return-c.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// { 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>(); }