Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
;
}
}