Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
pr94886-folly-3.C
blob: d7bd2c17d4a807d2e3f3b3223bd0977f389852b6 [
file
] [
log
] [
blame
]
#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
;
}
}