Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-yield-syntax-00-needs-expr.C
blob: 547f1a31c0c66795ca9550fabd307869fd0745a0 [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -w" }
#include
"coro.h"
void
foo
()
{
co_yield
;
// { dg-error "expected primary-expression before" }
}