Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-yield-syntax-02-outside-fn.C
blob: 71e119fbef3fd62c543006f10849c58de862e752 [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -w" }
#include
"coro.h"
int
a
[]
=
{
co_yield
21
};
// { dg-error {'co_yield' cannot be used outside a function} }