Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
pr93458-5-bad-coro-type.C
blob: 765c04892efd9d6079c6c241595c9838aa859449 [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -fexceptions -w" }
// Diagose bad coroutine function type.
#include
"coro.h"
int
bad_coroutine
(
void
)
{
co_yield
5
;
// { dg-error {unable to find the promise type for this coroutine} }
co_return
;
}