Sign in
gnu
/
gcc
/
5e9c4ed903c39f82f28362d9411d4dbc491264ec
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-await-syntax-02-outside-fn.C
blob: 4ce5c2e04a0abda0e3d240109e57d97b12441171 [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -w" }
#include
"coro.h"
auto
f
(
int
x
=
co_await coro
::
suspend_always
{});
// { dg-error {'co_await' cannot be used outside a function} }