Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/coroutines/pr94886-folly-3.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
#include "coro.h" #include "coro1-ret-int-yield-int.h" #include <array> coro1 my_coro () { const std::array<int, 5> expectedValues = {{0, 3, 1, 4, 2}}; for (int expectedValue : expectedValues) { co_yield expectedValue; } }