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;
}
}