Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-await-syntax-06-main.C
blob: ab520baaff145cc050ea2f77b37bfc58b43cb1da [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -w" }
#include
"coro.h"
int
main
(
int
ac
,
char
*
av
[])
{
co_await coro
::
suspend_always
{};
// { dg-error "cannot be used in the .main. function" }
}