MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / testForLoop

Function testForLoop

tests/EduCoroutineExprTest.cpp:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154task<int> testForLoop()
155{
156 task<int> v = get_random();
157
158 // More difficult as the condition and increment happen on each iteration
159 for(co_await v; 0 != co_await v; co_await v)
160 {
161 co_await v + 6;
162 }
163
164 co_return 0;
165}
166

Callers

nothing calls this directly

Calls 1

get_randomFunction · 0.70

Tested by

no test coverage detected