☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-yield-syntax-01-outside-fn.C
☽
☼
gcc/testsuite/g++.dg/coroutines/co-yield-syntax-01-outside-fn.C
code
plain
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} }