Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/pr94886-folly-3.C

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 }