Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/coroutines/co-yield-syntax-01-outside-fn.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// { dg-additional-options "-fsyntax-only -w" } #include "coro.h" auto f (int x = co_yield 5); // { dg-error {'co_yield' cannot be used outside a function} }