Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/co-yield-syntax-02-outside-fn.C

raw
1 // { dg-additional-options "-fsyntax-only -w" }
2
3 #include "coro.h"
4
5 int a[] = { co_yield 21 }; // { dg-error {'co_yield' cannot be used outside a function} }
6