☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
pr94886-folly-3.C
☽
☼
gcc/testsuite/g++.dg/coroutines/pr94886-folly-3.C
code
plain
raw
1
2
#include "coro.h"
3
#include "coro1-ret-int-yield-int.h"
4
5
#include <array>
6
7
coro1
8
my_coro ()
9
{
10
const std::array<int, 5> expectedValues = {{0, 3, 1, 4, 2}};
11
12
for (int expectedValue : expectedValues) {
13
co_yield expectedValue;
14
}
15
}