Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-await-syntax-01-outside-fn.C
blob: 484859c7062e478fc324137c191c98239af953ee [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -w" }
#include
"coro.h"
int
x
=
co_await coro
::
suspend_always
{};
// { dg-error {'co_await' cannot be used outside a function} }