danvratil / qcoro

C++ Coroutines for Qt
https://qcoro.dvratil.cz
MIT License
326 stars 53 forks source link

QCoroAsyncGenerator test: workaround compiler optimizations that breaks tests #189

Closed danvratil closed 10 months ago

danvratil commented 10 months ago

Make move a proper move, and workaround a clang optimization that breaks the generator coroutine when it realizes that co_yield is always unreachable.