diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2024-09-22 14:59:13 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2024-09-22 19:46:43 +0100 |
commit | 0312b66677590471b8b783b81f62b2e36b1b7ac1 (patch) | |
tree | 81f18a92353122dd7573e833d46604b9c637e7af /gcc/gimple-iterator.h | |
parent | 43eab54939d37d4e634a692910d31adafc053e38 (diff) | |
download | gcc-0312b66677590471b8b783b81f62b2e36b1b7ac1.zip gcc-0312b66677590471b8b783b81f62b2e36b1b7ac1.tar.gz gcc-0312b66677590471b8b783b81f62b2e36b1b7ac1.tar.bz2 |
testsuite, coroutines: Add tests for non-supension ramp returns.
Although it is most common for the ramp function to see a return when a coroutine
first suspends, there are other possibilities. For example all the awaits could
be ready - effectively the coroutine will then run to completion and deallocation.
Another case is where the first active suspension point causes the current routine
to be cancelled and thence destroyed.
These cases are tested here.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/torture/special-termination-00-sync-completion.C: New test.
* g++.dg/coroutines/torture/special-termination-01-self-destruct.C: New test.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc/gimple-iterator.h')
0 files changed, 0 insertions, 0 deletions