coroutines: Add a test for non-trivial await_resume return type.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 29 Feb 2020 20:45:31 +0000 (20:45 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 29 Feb 2020 20:46:15 +0000 (20:46 +0000)
commit1cb65b1207c73ab169f920e922d619b749bc9952
tree493c91d2f1ed29b2bba58413a88c630b269c02fc
parentc7dbc54958321d296ca4e283f26f279f6a5342a7
coroutines: Add a test for non-trivial await_resume return type.

Improve test coverage.

gcc/testsuite/ChangeLog:

2020-02-29  Iain Sandoe  <iain@sandoe.co.uk>

* g++.dg/coroutines/coro1-ret-int-yield-int.h: Add templated
awaitable.
* g++.dg/coroutines/torture/co-await-15-return-non-triv.C: New test.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/coroutines/coro1-ret-int-yield-int.h
gcc/testsuite/g++.dg/coroutines/torture/co-await-15-return-non-triv.C [new file with mode: 0644]