Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-return-syntax-02-outside-fn.C
blob: cda36eb2a3dfd408761a9949e37d8a7e9c2c2471 [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -w" }
#include
"coro.h"
auto
f
(
co_return
);
// { dg-error {expected primary-expression before 'co_return'} }