I'm having trouble understanding the memory allocations made by C++20 coroutines. For my code, I would like to verify that the compiler is eliding heap allocations, and if it isn't, to find out what data is being placed within that allocation. My strategy right now has been to inspect the assembly output, but I'm not sure what to look for.
How can I verify that heap allocations are elided?
Edit
A possible example to refer to would be Lewis Baker's code here: https://www.godbolt.org/z/EoovEEKvW
Respondents should feel free to refer to other code or libraries if they like.