Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/co-yield-syntax-06-main.C

raw
1 // { dg-additional-options "-fsyntax-only -w" }
2
3 #include "coro.h"
4
5 int main (int ac, char *av[]) {
6 co_yield 0; // { dg-error "cannot be used in the .main. function" }
7 }