Debian Codegraph @

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

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