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