]> git.ipfire.org Git - thirdparty/gcc.git/commit
coroutines: Update tests for get-return-object errors.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 24 Jun 2020 15:10:12 +0000 (16:10 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 24 Jun 2020 20:04:51 +0000 (21:04 +0100)
commit2dbc16552204ffa28b643949eb1f26b787017b39
tree53f525dd2b264c85c92bbd3f8968510b0534ec27
parent3faa0dde31720a59082b038a9f50f5703711bb53
coroutines: Update tests for get-return-object errors.

We updated the handling of the errors for cases when the
ramp return cannot be constructed from the user's provided
get-return-object method.  This updates the testcases to
cover this.

gcc/testsuite/ChangeLog:

* g++.dg/coroutines/void-gro-non-class-coro.C: Moved to...
* g++.dg/coroutines/coro-bad-gro-01-void-gro-non-class-coro.C: ...here.
* g++.dg/coroutines/coro-bad-gro-00-class-gro-scalar-return.C: New test.
gcc/testsuite/g++.dg/coroutines/coro-bad-gro-00-class-gro-scalar-return.C [new file with mode: 0644]
gcc/testsuite/g++.dg/coroutines/coro-bad-gro-01-void-gro-non-class-coro.C [moved from gcc/testsuite/g++.dg/coroutines/void-gro-non-class-coro.C with 99% similarity]