Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/coroutines/coro-builtins.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-additional-options "-fsyntax-only " } typedef __SIZE_TYPE__ size_t; int main () { void *co_h; void *promise; const size_t co_align = 16; bool d = __builtin_coro_done (co_h); __builtin_coro_resume (co_h); __builtin_coro_destroy (co_h); promise = __builtin_coro_promise (co_h, co_align, true); return 0; }