* [committed] testsuite: Add testcase for already fixed PR [PR102489]
@ 2022-03-22 14:43 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-03-22 14:43 UTC (permalink / raw)
To: gcc-patches
Hi!
This got broken with r12-3529 and fixed with r12-5255.
Tested on x86_64-linux, committed to trunk as obvious.
2022-03-22 Jakub Jelinek <jakub@redhat.com>
PR c++/102489
* g++.dg/coroutines/pr102489.C: New test.
--- gcc/testsuite/g++.dg/coroutines/pr102489.C.jj 2022-03-22 15:34:00.372804315 +0100
+++ gcc/testsuite/g++.dg/coroutines/pr102489.C 2022-03-22 15:35:06.205900644 +0100
@@ -0,0 +1,16 @@
+// PR c++/102489
+// { dg-do compile }
+// { dg-additional-options "-O" }
+
+#include <coroutine>
+
+struct footask {
+ struct promise_type {
+ std::suspend_never initial_suspend();
+ std::suspend_never final_suspend() noexcept;
+ void unhandled_exception();
+ void get_return_object();
+ };
+ std::suspend_always foo;
+ footask taskfun() { co_await foo; }
+};
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-22 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 14:43 [committed] testsuite: Add testcase for already fixed PR [PR102489] Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).