| 152 | } |
| 153 | |
| 154 | task<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 |
nothing calls this directly
no test coverage detected