Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
co-return-syntax-06-main.C
blob: 40d7e4e36231d4ba4ee7f449e6aa4ef4cf72d337 [
file
] [
log
] [
blame
]
// { dg-additional-options "-fsyntax-only -w" }
#include
"coro.h"
int
main
(
int
ac
,
char
*
av
[])
{
co_return
0
;
// { dg-error "cannot be used in the .main. function" }
}